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/examples.bats
Andrea Luzzardi 8de58eb3d0 tests: examples: react: use module . to run the test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-16 18:58:56 +02:00

18 lines
383 B
Bash

setup() {
load 'helpers'
common_setup
}
@test "example: react" {
DAGGER_WORKSPACE="$TESTDIR"/../examples/react
export DAGGER_WORKSPACE
"$DAGGER" up
# curl the URL we just deployed to check if it worked
deployUrl=$("$DAGGER" query -l error -f text www.deployUrl)
run curl -sS "$deployUrl"
assert_success
assert_output --partial "Todo App"
}