Skip to content

Commit 04b2e43

Browse files
authored
test: pool vmThreads to share module registry across tests (#2756)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent b515e5d commit 04b2e43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vitest.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ export default defineConfig({
55
plugins: [react()],
66
test: {
77
globals: true,
8-
pool: 'threads',
8+
pool: 'vmThreads',
99
clearMocks: true,
1010
// Server configuration to handle external dependencies
1111
server: {
1212
deps: {
1313
inline: ['@primer/react', '@primer/css'],
1414
},
1515
},
16+
experimental: {
17+
importDurations: {
18+
print: true,
19+
},
20+
},
1621
coverage: {
1722
enabled: false,
1823
reportOnFailure: true,

0 commit comments

Comments
 (0)