[Bug]: vitest
on Linux cannot find test files
#979
Labels
bug
Something isn't working
funding needed
Contribute to https://opencollective.com/aspect-build
help wanted
Aspect isn't prioritizing this, but the community could
What happened?
Running
vitest run
on Linux withrules_js
fails because thevitest
runner is not able to find any of the test files. The same target works fine under macOS (also note that the macOS run is finding the files twice under different locations ).The same command
vitest run
also works on both platform through eitheryarn
orpnpm
.Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 6.1.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:v1.23.2
Language(s) and/or frameworks involved:
vite
vitest
How to reproduce
A minimal repro can be found on this repo: https://github.com/z8v/vitest-rules_js. It includes all the mentioned test cases on the CI as GitHub actions. The example is mostly based on the
vue
example from https://github.com/aspect-build/bazel-examples with the addition of tests.An example of such run: https://github.com/z8v/vitest-rules_js/actions/runs/4575634560/jobs/8078707219
Any other information?
No response
The text was updated successfully, but these errors were encountered: