package yarn import ( "dagger.io/dagger" "dagger.io/yarn" "dagger.io/alpine" "dagger.io/dagger/op" ) TestData: dagger.#Artifact TestYarn: { run: yarn.#Script & { source: TestData } test: #up: [ op.#Load & {from: alpine.#Image & { package: bash: "=5.1.0-r0" }}, op.#Exec & { mount: "/build": from: run args: [ "/bin/bash", "--noprofile", "--norc", "-eo", "pipefail", "-c", """ test "$(cat /build/test)" = "output" """, ] }, ] }