-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
🐛 bugsomething isn't workingsomething isn't working🧩 typescript-pluginTypeScript pluginTypeScript plugin
Description
What happened?
When running the TypeScript plugin in standalone mode, test files produce misleading semantic errors like Cannot find name 'describe'. or Cannot find name 'expect'.
This resulted in 2581 semantic errors across all test files in the workspace.
The TypeScript plugin in standalone mode uses tsconfig.base.json directly, which doesn't include vitest/globals in its types. Project-level tsconfig.test.json files do have the correct types configured, but the plugin never sees them.
What would you expect to happen?
Test files should be analyzed with their proper type definitions, or excluded from analysis.
What steps did you take?
- Ran
npx nx run workspace:code-pushup --onlyPlugins=typescript - The TypeScript plugin used
tsconfig.base.jsonas configured in the preset - Test files were analyzed without Vitest type definitions
Code PushUp package version
0.100.1
What operation system are you on?
MacOS
Node version
24.8.0
Relevant log output
Error: TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.
Error: TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.Metadata
Metadata
Assignees
Labels
🐛 bugsomething isn't workingsomething isn't working🧩 typescript-pluginTypeScript pluginTypeScript plugin