Skip to content

Commit cfe15b6

Browse files
author
StackMemory Bot (CLI)
committed
fix(config): add bench project to vitest for pre-publish benchmarks
The search-benchmark.test.ts was excluded from the unit project but had no dedicated project, causing pre-publish benchmark verification to fail.
1 parent 164b132 commit cfe15b6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

vitest.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ export default defineConfig({
9999
env: { LIVE_TEST: '1' },
100100
},
101101
},
102+
{
103+
extends: true,
104+
test: {
105+
name: 'bench',
106+
include: [...benchmarkFiles],
107+
pool: 'forks',
108+
maxWorkers: 1,
109+
testTimeout: 600000,
110+
hookTimeout: 60000,
111+
},
112+
},
102113
],
103114
},
104115
});

0 commit comments

Comments
 (0)