summaryrefslogtreecommitdiff
path: root/yarn.tests/no-act.script
blob: 983f1158c3c3eef526163abdb9d93e21800d2cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -eu

# Create a scenario that will fail.
cat <<EOF > "$DATADIR/fail.yarn"
    SCENARIO this will fail
    GIVEN badness
    WHEN bad things happen
    THEN more badness

    IMPLEMENTS GIVEN badness
    false

    IMPLEMENTS WHEN bad things happen
    false

    IMPLEMENTS THEN more badness
    false
EOF

./yarn -q -n "$DATADIR/fail.yarn"