stdlib: rename js/react.#App to js/yarn.#Package
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
committed by
Solomon Hykes
parent
56ef4c1928
commit
16edfc4fec
@@ -8,8 +8,8 @@ setup() {
|
||||
"$DAGGER" compute "$TESTDIR"/stdlib/alpine
|
||||
}
|
||||
|
||||
@test "stdlib: react" {
|
||||
"$DAGGER" compute "$TESTDIR"/stdlib/js/react --input-dir TestData="$TESTDIR"/stdlib/js/react/testdata
|
||||
@test "stdlib: yarn" {
|
||||
"$DAGGER" compute "$TESTDIR"/stdlib/js/yarn --input-dir TestData="$TESTDIR"/stdlib/js/yarn/testdata
|
||||
}
|
||||
|
||||
@test "stdlib: go" {
|
||||
|
@@ -2,7 +2,7 @@ package react
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/js/react"
|
||||
"dagger.io/js/yarn"
|
||||
"dagger.io/alpine"
|
||||
"dagger.io/os"
|
||||
)
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestReact: {
|
||||
app: react.#App & {
|
||||
pkg: yarn.#Package & {
|
||||
source: TestData
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ TestReact: {
|
||||
image: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
}
|
||||
mount: "/build": from: app.build
|
||||
mount: "/build": from: pkg.build
|
||||
command: """
|
||||
test "$(cat /build/test)" = "output"
|
||||
"""
|
Reference in New Issue
Block a user