Repository navigation
build(audit-engine): typecheck package tests #1859 - #1861
Merged
Merged
Conversation
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.
Part of #1859
Scope: audit-engine only. Typechecking its tests surfaced 266 errors (over the ~150 threshold), so rules (1 error:
@types/bunnot installed for thebuntypes entry) is left for a follow-up PR.Change
packages/audit-engine/tsconfig.json: includetests/**/*.ts, add"jsx": "react-jsx"(tests now pull inpackages/report/src/output/html.tsx, which raised TS6142 otherwise).buntypes and@types/bunwere already present.!/ casts on the actual-value side).Errors fixed (266 to 0)
TS2322 x102 (rule meta
categorywidened to string, nowas const), TS2740 x51 (crawler.storagecast toSQLiteStorage), TS2345 x32, TS2305 x11 (imports from the right packages), TS7022/7023 x16 (circularBun.serveinference annotated), TS2352 x10, TS18047/18048 x16 (overallisnumber | null,!), TS2783 x6, TS2739 x6, and a handful of others (TS2353, TS2339, TS2769, TS2741, TS2554, TS2459, TS1117, TS6142). Partial fixtures useas unknown as T.ts-expect-error (2)
tests/template-signature-coverage-1373.test.ts:}, 30_000);is a third argument todescribe(), which the types have no slot for. Left as is with@ts-expect-error(no behaviour-preserving move).tests/item-sources-publish-837.test.ts: fixture fielddescriptionnot inCappableRuleMeta, kept unchanged.Timeout moves
None.
Gates
bun run typecheckin packages/audit-engine: 0 errors.Agent skill: no change