From 43c358888f14bd0cd21a33c8191f3a492d94eb01 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Wed, 1 Apr 2026 07:33:21 -0400 Subject: [PATCH] test: pool `vmThreads` to share module registry across tests Signed-off-by: Adam Setch --- vitest.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index 3a0b4cc31..92bdb1002 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ plugins: [react()], test: { globals: true, - pool: 'threads', + pool: 'vmThreads', clearMocks: true, // Server configuration to handle external dependencies server: { @@ -13,6 +13,11 @@ export default defineConfig({ inline: ['@primer/react', '@primer/css'], }, }, + experimental: { + importDurations: { + print: true, + }, + }, coverage: { enabled: false, reportOnFailure: true,