Repository navigation
build(packages): typecheck the tests of the remaining 8 packages #1859 - #2190
Merged
Merged
Conversation
…detect, core-contracts, config, waf-detect, threat-intel #1859 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 20, 2026 23:36
nc9
added a commit
that referenced
this pull request
Nov 21, 2026
* origin/main: test(install,audit-engine): run install-hardening and attestation cases concurrently, copy the canonical crawl DB in javascript-shipped #1839 (#2186) build(packages): typecheck the tests of crawler, report, utils, tech-detect, core-contracts, config, waf-detect, threat-intel #1859 (#2190) fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 (#2156) fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162) fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163) test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166) fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174) refactor(cli): list bash completion flags one per line #2116 (#2175) feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177) test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179) feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181) Signed-off-by: Nik Cubrilovic <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1859 (the remaining 8 packages; audit-engine and rules landed in #1861 and #1862).
Summary
Same pattern as packages/parser after #1858: each package's
tsconfig.jsonnow includestests/**/*.ts, so its existingtypecheckscript, the rootbun run typecheckand CI's "Format, lint, and typecheck" job cover the tests.tests/**/*.ts(types were already set)."types": ["bun"]and an@types/bun ^1.4.0devDependency (already in bun.lock; the lock diff only adds five devDependency blocks)."rootDir": "src"(incompatible with tests outside src). The package has no emit or build consumer, so nothing else uses it.Changes that affect test behaviour (called out per the criteria)
{ timeout: 20_000 }moved from the 2nd to the 3rdtest()argument inpackages/report/tests/lcp-preload-grouping-1074.test.ts("evidence stays bounded across several hundred pages", "2048-char page and image URLs stay inside the finding payload cap"). Those timeouts now apply; before, bun ignored them and the default applied. No other misplaced timeouts exist: bun-types'Describehas no 3rd slot, so anydescribe(..., timeout)would now fail typecheck.packages/crawler/tests/entry-fetch-timeout.test.ts: fixtureFetchResponsegains the requiredurl: req.url.packages/crawler/tests/frontier-trailing-slash.test.ts: options gaindropQueryPrefixes: [](required by the type; empty, so normalization is unchanged).packages/crawler/tests/crawl-lease.test.ts:winner?.pidtowinner!.pid, right afterexpect(winner).toBeDefined().packages/tech-detect/tests/hint-derive-soundness-1420.test.ts:/(a)\12bcde/becamenew RegExp(String.raw\(a)\12bcde`)`, the same source and flags at runtime (TS rejects the legacy octal escape in a literal).as unknown ascasts for partial fixtures (crawl config snapshots, report fixtures),Buffer<ArrayBuffer>andBodyInittypings, explicitReturnType<typeof Bun.serve>annotations, imports from the modules that export the types,as constand typedtest.each/expect<string[]>.Acceptance criteria
bun run typecheck, parser pattern: per-packagebun run typecheckexit 0 for all 8 (plus audit-engine, rules, parser); rootbun run typecheckexit 0, 0error TS.{ timeout }moved; those timeouts now apply (listed above).Gates
bun run scripts/test-suites.ts --checkOK;bun run format:checkexit 0;bun run lintexit 0;bun run typecheckexit 0;bun run notices:checkOK;bun scripts/changelog.ts checkOK.test-suites.ts --run report1413 pass 0 fail (122 files);--run crawler1180 pass 0 fail (129 files).--timeout 30000: 2694 pass 0 fail.No changelog.d entry: no user-visible change. squirrelscan agent skill change needed: no.