This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/stdlib/js/react/react.cue
Solomon Hykes ee621590ff stdlib: dagger.io/js/react
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-07 16:28:39 -07:00

40 lines
533 B
CUE

package react
import (
"dagger.io/dagger"
"dagger.io/js/react"
"dagger.io/alpine"
"dagger.io/docker"
)
TestData: dagger.#Artifact
TestReact: {
app: react.#App & {
source: TestData
}
test: docker.#Container & {
image: alpine.#Image & {
package: bash: "=5.1.0-r0"
}
volume: build: {
from: app.build
dest: "/build"
}
command: """
test "$(cat /build/test)" = "output"
"""
shell: {
path: "/bin/bash"
args: [
"--noprofile",
"--norc",
"-eo",
"pipefail",
"-c",
]
}
}
}