-
-
Notifications
You must be signed in to change notification settings - Fork 111
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
When running tests from cli, the global teardown function defined in "globalSetup" file runs but when debugging from the extension, it does not.
Reproduction
// config.ts
{
test: {
globalSetup: ['setup.ts'],
},
}// setup.ts
/**
* Global setup
*/
export default function setup() {
console.log(`Running setup ${import.meta.dirname}`);
return () => {
console.log(`Running cleanup ${import.meta.dirname}`);
};
}define a test and debug it using the following button:
Output
There are extension logs for running the setup function but no logs for cleanupExtension Version
1.17.0
Vitest Version
3.0.9
Validations
- Check that you are using the latest version of the extension
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.