Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: vitest on Linux cannot find test files #979

Open
z8v opened this issue Mar 31, 2023 · 0 comments
Open

[Bug]: vitest on Linux cannot find test files #979

z8v opened this issue Mar 31, 2023 · 0 comments
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

Comments

@z8v
Copy link

z8v commented Mar 31, 2023

What happened?

Running vitest run on Linux with rules_js fails because the vitest 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 either yarn or pnpm.

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 or MODULE.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

@z8v z8v added the bug Something isn't working label Mar 31, 2023
@github-actions github-actions bot added the untriaged Requires traige label Mar 31, 2023
@alexeagle alexeagle added help wanted Aspect isn't prioritizing this, but the community could funding needed Contribute to https://opencollective.com/aspect-build and removed untriaged Requires traige labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants