@nx/vite:test does not find tests with custom vitest config #19076
Labels
outdated
scope: testing tools
Issues related to Cypress / Jest / Playwright / Vitest support in Nx
stale
type: bug
Current Behavior
@nx/vite:test
(version16.7.1
) does not find test suite.Expected Behavior
I expect it to find the tests.
It does work if I navigate into the directory and use
pnpm vitest -c vitest.node.ts
GitHub Repo
https://github.com/NicoVogel/logger-wrapper
Steps to Reproduce
bug/nx-vite-test-no-tests-found
pnpm install
pnpm exec nx test logger
Nx Report
Failure Logs
Package Manager Version
pnpm 8.6.12
Operating System
Additional Information
The general intended setup is to test the library
logger
in both the browser and node environment.Therefore there are multiple vite config files.
But relevant for this bug is that it only happens with the
@nx/vite:test
executor, as it works fine when doing the following:cd packages/logger
pnpm vitest -c vitest.node.ts
The text was updated successfully, but these errors were encountered: