@windyroad/jtbd 0.4.0-preview.61 → 0.4.0-preview.62
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.
|
@@ -67,8 +67,11 @@ run_hook_with_file() {
|
|
|
67
67
|
file_is_excluded 'RISK-POLICY.md'
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
@test "enforce: does NOT have UI-only
|
|
71
|
-
|
|
70
|
+
@test "enforce: does NOT have UI-only extension filter (ADR-007/008)" {
|
|
71
|
+
# ADR-007/008 removed web-UI-only scoping. The hook must not filter
|
|
72
|
+
# by UI file extension. NOTE: `*) exit 0 ;;` is a legitimate pattern
|
|
73
|
+
# for the project-root check (P004) — see jtbd-project-root.bats.
|
|
74
|
+
! grep -qE '\.html\||tsx\|jsx\|html\|vue\|svelte' "$HOOK"
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
# --- Functional tests (execute hook with mock JSON) ---
|