We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import.meta.glob
Consider the code below
const results = import.meta.glob('./*.txt', { as: 'raw', eager: true, }) console.log(results)
It will not re-run after changing foo.txt. But if removes as: 'raw' it just works.
foo.txt
as: 'raw'
https://github.com/sxzz/vitest-glob-test
nr test and modify tests/a.txt
nr test
tests/a.txt
System: OS: macOS 13.2.1 CPU: (10) arm64 Apple M1 Max Memory: 3.63 GB / 32.00 GB Shell: 3.6.0 - /opt/homebrew/bin/fish Binaries: Node: 18.14.0 - ~/Library/Caches/fnm_multishells/18655_1677326277920/bin/node Yarn: 1.22.19 - ~/Library/pnpm/yarn npm: 9.3.1 - ~/Library/Caches/fnm_multishells/18655_1677326277920/bin/npm Browsers: Chrome: 110.0.5481.177 Chrome Canary: 113.0.5616.0 Firefox: 109.0 Safari: 16.3 Safari Technology Preview: 16.4 npmPackages: vite: ^4.1.4 => 4.1.4 vitest: ^0.29.1 => 0.29.1
pnpm
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Consider the code below
It will not re-run after changing
foo.txt
. But if removesas: 'raw'
it just works.Reproduction
https://github.com/sxzz/vitest-glob-test
nr test
and modifytests/a.txt
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: