You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: three test suites had been silently disabled (#9)
Answering "do we have unit and e2e tests" turned up that three of them had not
run since the src/ reorganisation. All three fail the same way: a path moved,
nothing referenced the new location, and no CI job executed the script, so the
breakage was invisible.
test:integration → src/sql-integration.test.ts (moved to scenarios/)
test:perf → src/limiter.simulation.test.ts (moved to policies/)
test:compat → dist/compat/opossum.cjs (moved to adapters/)
The compat one is the worst. Fixing the generator was not enough: the shim is
written into .opossum-compat/ and that directory is treated as a cache, so
every run kept using a shim generated before the move. The suite reported
0 of 0 STALLED for every file, which means the README's headline "362 of 362"
claim was unverifiable — and the harness said so out loud rather than passing
vacuously, which is the only reason it was recoverable. A generated file must
not be cached alongside downloaded ones; the shim is now rewritten every run.
362 of 362 again.
Root cause is not the paths, it is that nothing ran them. Coverage, smoke and
docs were all in CI and all survived the reorg; these three were not, and a
suite that never executes cannot be distinguished from one that passes. All
three now run in CI.
Plus scripts/check-test-scripts.mjs: every src/… path named in a package.json
script must exist. It runs first in `verify` so it fails in a second instead of
after a full coverage pass, and it fails if it ever matches zero paths, so it
cannot go inert the way the thing it guards did.
"ci:version": "changeset version && biome format --write package.json",
115
-
"test:integration": "RESILIX_TEST_DATABASE_URL=${RESILIX_TEST_DATABASE_URL:-postgres://postgres:resilix@localhost:5459/resilix_test} vitest run src/sql-integration.test.ts",
116
+
"test:integration": "RESILIX_TEST_DATABASE_URL=${RESILIX_TEST_DATABASE_URL:-postgres://postgres:resilix@localhost:5459/resilix_test} vitest run src/scenarios/sql-integration.test.ts",
0 commit comments