Skip to content

Commit 7ec58d4

Browse files
perf(ci): run webview tests with four workers (#2308)
Co-authored-by: Roomote <roomote@roomote.dev>
1 parent 4d1a543 commit 7ec58d4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎webview-ui/vitest.config.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export default defineConfig({
1717
environment: "jsdom",
1818
include: ["src/**/*.spec.{ts,tsx}", "src/**/*.test.{ts,tsx}"],
1919
onConsoleLog,
20-
maxWorkers: isCI ? 1 : undefined,
20+
// Four workers match the four vCPUs of the hosted CI runners; the
21+
// benchmark in #2288 ran the same inventory roughly 3x faster than one.
22+
maxWorkers: isCI ? 4 : undefined,
2123
testTimeout: isCI ? 15000 : 5000,
2224
server: {
2325
deps: {

0 commit comments

Comments
 (0)