@windyroad/jtbd 0.12.6-preview.709 → 0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,25 +21,25 @@ teardown() {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@test "eval: scope text mentions problem files exemption (P029)" {
|
|
24
|
-
run bash "$HOOK"
|
|
24
|
+
run bash "$HOOK" </dev/null
|
|
25
25
|
[ "$status" -eq 0 ]
|
|
26
26
|
[[ "$output" == *"docs/problems/"* ]] || [[ "$output" == *"problem tickets"* ]]
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@test "eval: scope text mentions BRIEFING.md exemption (P029)" {
|
|
30
|
-
run bash "$HOOK"
|
|
30
|
+
run bash "$HOOK" </dev/null
|
|
31
31
|
[ "$status" -eq 0 ]
|
|
32
32
|
[[ "$output" == *"BRIEFING"* ]]
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
@test "eval: scope text mentions docs/briefing/ exemption (P100)" {
|
|
36
|
-
run bash "$HOOK"
|
|
36
|
+
run bash "$HOOK" </dev/null
|
|
37
37
|
[ "$status" -eq 0 ]
|
|
38
38
|
[[ "$output" == *"docs/briefing/"* ]]
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@test "eval: scope text mentions RISK-POLICY exemption (P029)" {
|
|
42
|
-
run bash "$HOOK"
|
|
42
|
+
run bash "$HOOK" </dev/null
|
|
43
43
|
[ "$status" -eq 0 ]
|
|
44
44
|
[[ "$output" == *"RISK-POLICY"* ]]
|
|
45
45
|
}
|
|
@@ -19,7 +19,7 @@ teardown() {
|
|
|
19
19
|
|
|
20
20
|
@test "eval: suggests update-guide when docs/jtbd/ missing (no UI files)" {
|
|
21
21
|
# No UI files, no docs — should still suggest
|
|
22
|
-
run bash "$HOOK"
|
|
22
|
+
run bash "$HOOK" </dev/null
|
|
23
23
|
[ "$status" -eq 0 ]
|
|
24
24
|
[[ "$output" == *"wr-jtbd:update-guide"* ]]
|
|
25
25
|
}
|
|
@@ -27,7 +27,7 @@ teardown() {
|
|
|
27
27
|
@test "eval: suggests update-guide when docs/jtbd/ missing (with UI files)" {
|
|
28
28
|
mkdir -p src
|
|
29
29
|
touch src/App.tsx
|
|
30
|
-
run bash "$HOOK"
|
|
30
|
+
run bash "$HOOK" </dev/null
|
|
31
31
|
[ "$status" -eq 0 ]
|
|
32
32
|
[[ "$output" == *"wr-jtbd:update-guide"* ]]
|
|
33
33
|
}
|
|
@@ -35,7 +35,7 @@ teardown() {
|
|
|
35
35
|
@test "eval: injects enforcement when docs/jtbd/README.md exists" {
|
|
36
36
|
mkdir -p docs/jtbd
|
|
37
37
|
echo "# Index" > docs/jtbd/README.md
|
|
38
|
-
run bash "$HOOK"
|
|
38
|
+
run bash "$HOOK" </dev/null
|
|
39
39
|
[ "$status" -eq 0 ]
|
|
40
40
|
[[ "$output" == *"MANDATORY JTBD CHECK"* ]]
|
|
41
41
|
}
|
|
@@ -46,7 +46,7 @@ teardown() {
|
|
|
46
46
|
# migrates into the directory layout.
|
|
47
47
|
mkdir -p docs
|
|
48
48
|
echo "# Jobs" > docs/JOBS_TO_BE_DONE.md
|
|
49
|
-
run bash "$HOOK"
|
|
49
|
+
run bash "$HOOK" </dev/null
|
|
50
50
|
[ "$status" -eq 0 ]
|
|
51
51
|
[[ "$output" != *"MANDATORY JTBD CHECK"* ]]
|
|
52
52
|
[[ "$output" == *"wr-jtbd:update-guide"* ]]
|
|
@@ -56,14 +56,14 @@ teardown() {
|
|
|
56
56
|
mkdir -p docs/jtbd
|
|
57
57
|
echo "# Index" > docs/jtbd/README.md
|
|
58
58
|
echo "# Jobs" > docs/JOBS_TO_BE_DONE.md
|
|
59
|
-
run bash "$HOOK"
|
|
59
|
+
run bash "$HOOK" </dev/null
|
|
60
60
|
[ "$status" -eq 0 ]
|
|
61
61
|
[[ "$output" == *"docs/jtbd"* ]]
|
|
62
62
|
[[ "$output" == *"MANDATORY JTBD CHECK"* ]]
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@test "eval: does not reference UI-only scoping in output" {
|
|
66
|
-
run bash "$HOOK"
|
|
66
|
+
run bash "$HOOK" </dev/null
|
|
67
67
|
[ "$status" -eq 0 ]
|
|
68
68
|
[[ "$output" != *"UI files"* ]]
|
|
69
69
|
}
|