From 23171d03c0a8d85f59644c92f68d1805534024d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Thu, 1 May 2025 15:20:16 +0000 Subject: [PATCH] test: enable gc tests reactivity/gc tests were being skipped because vitest was running without gc exposed --- vitest.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index 3fce4ce87c2..06dd80e4208 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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'],