Skip to content

fix(tests): chain serial quarantine step in npm test (#13286) - #13418

Merged
diegosouzapw merged 1 commit into
diegosouzapw:release/v3.8.51from
KooshaPari:pr/13286-npm-test-serial
Sep 15, 2026
Merged

diegosouzapw merged 1 commit into
diegosouzapw:release/v3.8.51from
KooshaPari:pr/13286-npm-test-serial

Conversation

@KooshaPari

Copy link
Copy Markdown
Contributor

Problem

npm test was the only test runner that did not chain the serial quarantine step (&& npm run test:unit:serial), silently skipping the quarantined test files in tests/unit/serial/**/*.test.ts. A developer running plain npm test got a green result without ever executing them.

script chains test:unit:serial
test no (before this fix)
test:unit yes
test:unit:ci yes
test:unit:fast yes
test:coverage:runner yes

The guard test (test-serial-quarantine.test.ts) also did not include test in its list of runners to check, so the gap was invisible to CI.

Fix

  1. Add && npm run test:unit:serial to the test script in package.json
  2. Add "test" to the guard test's runner list in test-serial-quarantine.test.ts

Verification

All 4 guard tests pass after the fix.

Closes #13286

Copilot AI lite review requested due to automatic review settings September 12, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…apw#13286)

The 'test' script was the only parallel runner that did not chain
npm run test:unit:serial, so serial-quarantined tests were silently
skipped. Added the missing chain and updated the guard test to cover
the 'test' runner.
@KooshaPari
KooshaPari force-pushed the pr/13286-npm-test-serial branch from 3cf1e77 to a16dad6 Compare September 13, 2026 08:42
@diegosouzapw
diegosouzapw merged commit 67cb0ac into diegosouzapw:release/v3.8.51 Sep 15, 2026
8 of 16 checks passed
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…apw#13286) (diegosouzapw#13418)

Chains `npm run test:unit:serial` onto the plain `npm test` script, so the quarantined serial suite is no longer skipped when contributors run `npm test` (diegosouzapw#13286). The existing `test-serial-quarantine` guard now covers `test` too.

Validated in one consolidated batch of this series (37 PRs boarded together on `release/v3.8.51`): `typecheck:core`, `check:open-sse-typecheck` and `check:dashboard-typecheck` clean; ESLint clean on every changed file; file-size, complexity, cognitive-complexity, changelog-integrity, docs-counts, docs-sync and migration-numbering gates green (only the pre-existing `open-sse/utils/stream.ts` file-size red remains, inherited from the base); 3,743 focused `node:test` cases plus 34 vitest cases green.

Thanks @KooshaPari!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: npm test silently skips the serial quarantine files

3 participants