universe: spin out js/yarn tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
committed by
Solomon Hykes
parent
d388c729bc
commit
2976afad66
@@ -4,10 +4,6 @@ setup() {
|
||||
common_setup
|
||||
}
|
||||
|
||||
@test "stdlib: yarn" {
|
||||
"$DAGGER" compute "$TESTDIR"/stdlib/js/yarn --input-dir TestData="$TESTDIR"/stdlib/js/yarn/testdata
|
||||
}
|
||||
|
||||
@test "stdlib: go" {
|
||||
"$DAGGER" compute "$TESTDIR"/stdlib/go --input-dir TestData="$TESTDIR"/stdlib/go/testdata
|
||||
}
|
||||
|
11
tests/stdlib/js/yarn/testdata/package.json
vendored
11
tests/stdlib/js/yarn/testdata/package.json
vendored
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"name": "test",
|
||||
"main": "index.js",
|
||||
"license": {
|
||||
"type": "Apache-2.0",
|
||||
"url": "https://opensource.org/licenses/apache2.0.php"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "mkdir -p ./build && echo output > ./build/test && touch .env && cp .env ./build/"
|
||||
}
|
||||
}
|
@@ -1,26 +0,0 @@
|
||||
package react
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/js/yarn"
|
||||
"dagger.io/alpine"
|
||||
"dagger.io/os"
|
||||
)
|
||||
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestReact: {
|
||||
pkg: yarn.#Package & {
|
||||
source: TestData
|
||||
}
|
||||
|
||||
test: os.#Container & {
|
||||
image: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
}
|
||||
mount: "/build": from: pkg.build
|
||||
command: """
|
||||
test "$(cat /build/test)" = "output"
|
||||
"""
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user