-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: Hidden breaking changes from 0.33 -> 0.34 #3948
Comments
Start a new pull request in StackBlitz Codeflow. |
These are not breaking changes, but bugs. |
Experiencing issues with setupFiles between 0.33 -> 0.34 I cannot share further debug details because they are proprietary, but this .on issue is quite strange and does not happen in 0.33. Test config; test: {
includeSource: ['src/lib/**/*.ts', 'src/lib/**/*.js', 'src/lib/**/*.svelte', 'src/tests/*.test.ts'],
setupFiles: [
'src/tests/globalTestSetup.ts'
],
hookTimeout: 25000
}, My beforeAll function applies some global shared variables throughout all of my tests and calls a playwright page setup context function; there's no indication that's having issues in the new version (struggling here): beforeAll(async () => {
if (globalThis.processInProgress && !globalThis.context) {
await waitUntilReady();
}
// ... omitted for brevity ...
}); |
This just looks like a version mismatch. Check that all |
Describe the bug
Usage of files outside the projectfolder worked in 0.33 like
require('path').resolve(somerootdir, 'somepath.ts')
in setupFiles from a shared config for example. in 0.34 you may need to add{ server: { fs: { strict: false }}}
might be a result of updating defineConfig from vite?Changing
process.env.NODE_ENV
for example did work in 0.33. In 0.34 you get an error that you cannot changervalues
.Reproduction
https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/basic?initialPath=__vitest__/
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: