Skip to content

Commit 23171d0

Browse files
authored
test: enable gc tests
reactivity/gc tests were being skipped because vitest was running without gc exposed
1 parent 0b23fd2 commit 23171d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vitest.config.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ export default defineConfig({
2323
},
2424
test: {
2525
globals: true,
26-
pool: 'threads',
26+
pool: 'forks',
27+
poolOptions: {
28+
forks: {
29+
execArgv: ['--expose-gc'],
30+
},
31+
},
2732
setupFiles: 'scripts/setup-vitest.ts',
2833
environmentMatchGlobs: [
2934
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom'],

0 commit comments

Comments
 (0)