test: enable gc tests

reactivity/gc tests were being skipped because vitest was running without gc exposed
This commit is contained in:
Fernando Fernández 2025-05-01 15:20:16 +00:00 committed by GitHub
parent 0b23fd2383
commit 23171d03c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,12 @@ export default defineConfig({
},
test: {
globals: true,
pool: 'threads',
pool: 'forks',
poolOptions: {
forks: {
execArgv: ['--expose-gc'],
},
},
setupFiles: 'scripts/setup-vitest.ts',
environmentMatchGlobs: [
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom'],