-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
Current Behavior
Right now when I try to run test with vitest inside a nx workspace I am getting errors indicating that no test were found inside a file. Then, when I run the tests with the verbose flag the debug error is
[Nx Vite TsPaths] Resolved [...]/libs/chart-ui/src/lib/angular/toolbox/mobile/components/landscape/toolbox-vertical/toolbox-vertical.component.spec.ts to undefined
Because of that, I suppose later I get the error
Error: No test suite found in file [...]/libs/chart-ui/src/lib/angular/settings/pipes/css-variable.pipe.spec.ts
Expected Behavior
I expect the nxViteTsPaths plugin to correctly resolve imports defined in tsconfig.base.json and run tests correctly
GitHub Repo
No response
Steps to Reproduce
- Execute command
nx test {{project-name}}
Nx Report
NX Report complete - copy this into the issue template
Node : 25.2.1
OS : win32-x64
Native Target : x86_64-windows
npm : 11.7.0
nx : 22.3.3
@nx/js : 22.3.3
@nx/eslint : 22.3.3
@nx/workspace : 22.3.3
@nx/angular : 22.3.3
@nx/jest : 22.3.3
@nx/devkit : 22.3.3
@nx/esbuild : 22.3.3
@nx/eslint-plugin : 22.3.3
@nx/express : 22.3.3
@nx/module-federation : 22.3.3
@nx/node : 22.3.3
@nx/plugin : 22.3.3
@nx/react : 22.3.3
@nx/rollup : 22.3.3
@nx/rspack : 22.3.3
@nx/vite : 22.3.3
@nx/vitest : 22.3.3
@nx/web : 22.3.3
@nx/webpack : 22.3.3
@nx/docker : 22.3.3
typescript : 5.9.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/vite/plugin
@nx/webpack/plugin
@nx/vitest
---------------------------------------
Community plugins:
@analogjs/vite-plugin-angular : 2.2.2
@analogjs/vitest-angular : 2.2.2
@ngrx/operators : 21.0.1
@ngrx/signals : 21.0.1
ngxtension : 4.5.0
---------------------------------------
Local workspace plugins:
@match-trader/utils
---------------------------------------
Cache Usage: 0.00 B / 47.61 GB
---------------------------------------
⚠️ Multiple Nx versions detected
Your workspace uses [email protected], but other packages depend on a different version:
- @nx/devkit → [email protected]
These packages should not have nx as a dependency. Please report this issue to the package maintainers.
Run `npm explain [email protected]` for more details.Failure Logs
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved C:/Users/renet/Desktop/match-trade/match-trader/libs/chart-ui/src/lib/angular/toolbox/mobile/components/landscape/render-type-section/render-type-section.component.spec.ts to undefined
[Nx Vite TsPaths] Unable to resolve /src/lib/angular/toolbox/mobile/components/landscape/pattern-section/pattern-section.component.spec.ts with tsconfig paths. Using fallback file matching.
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved /src/lib/angular/toolbox/mobile/components/landscape/pattern-section/pattern-section.component.spec.ts to undefined
[Nx Vite TsPaths] Unable to resolve /src/lib/angular/toolbox/mobile/components/landscape/render-type-section/render-type-section.component.spec.ts with tsconfig paths. Using fallback file matching.
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved /src/lib/angular/toolbox/mobile/components/landscape/render-type-section/render-type-section.component.spec.ts to undefined
[Nx Vite TsPaths] Unable to resolve C:/Users/renet/Desktop/match-trade/match-trader/libs/chart-ui/src/test-setup.ts with tsconfig paths. Using fallback file matching.
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved C:/Users/renet/Desktop/match-trade/match-trader/libs/chart-ui/src/test-setup.ts to undefined
[Nx Vite TsPaths] Unable to resolve C:/Users/renet/Desktop/match-trade/match-trader/libs/chart-ui/src/lib/angular/toolbox/mobile/components/landscape/toolbox-vertical/toolbox-vertical.component.spec.ts with tsconfig paths. Using fallback file matching.
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved C:/Users/renet/Desktop/match-trade/match-trader/libs/chart-ui/src/lib/angular/toolbox/mobile/components/landscape/toolbox-vertical/toolbox-vertical.component.spec.ts to undefined
[Nx Vite TsPaths] Unable to resolve /src/lib/angular/toolbox/mobile/components/landscape/toolbox-vertical/toolbox-vertical.component.spec.ts with tsconfig paths. Using fallback file matching.
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\libs\chart-ui\tsconfig.json
[Nx Vite TsPaths] Trying to resolve file from config in C:\Users\renet\Desktop\match-trade\match-trader\tsconfig.base.json
[Nx Vite TsPaths] Resolved /src/lib/angular/toolbox/mobile/components/landscape/toolbox-vertical/toolbox-vertical.component.spec.ts to undefinedPackage Manager Version
npm
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response