Repository navigation
test(cli): doctor-integration, validate-integration and check-failures fixtures check their own files - #9496
Conversation
…s fixtures check their own files Three CLI test fixtures are packages in a folder inside the repository with no TypeScript config of their own, so each props comparison read the repository's root config, as `tsc` does, and compiled every file in the repository: 15 times across doctor-integration's components cases, validate-integration's read-only case and the check-failures fixture's one strict check, which runs in a beforeAll with a 60 s budget. Each fixture now carries a config scoped to its own files that extends the repository's root config, as the public-imports fixtures do. The root config is read 0 times. Pinned, same time: doctor-integration 66.5 to 68.7 s becomes 32.0 to 32.4 s, validate-integration 13.0 to 13.8 s becomes 6.2 to 6.4 s, and the check-failures file 16.9 to 17.4 s becomes 10.5 to 11.8 s; every case passes on both sides.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
This change looks good. Each fixture's own tsconfig.json keeps the root compiler options and scopes the props comparison to the fixture's files. All three suites keep their assertions and pass in roughly half the time. Nothing else is needed from you.
[Automated review]
Maintainer impact
Three CLI test fixtures compiled every file in the repository on each props comparison.
tscreads it, so the props comparison compiles every file that config includes.componentscases;beforeAllwith a 60 s budget.Intended invariant
Every CLI test fixture inside the repository is checked against its own files: none reads the repository's root config.
Change
node_modules, reads none.Evidence
Scope
Testing
packages/cli:clients/cli/commands/doctor-integration.test.mjs,api/integration/validate-integration.test.mjs,test/integration-check-failures.test.mjs(Vitest, node project).Local gates at 8b51c30:
pnpm lint(0 errors);