Skip to content

Commit

Permalink
chore: set maxWorkers for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed May 17, 2024
1 parent d1c0422 commit a8c6222
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/modernjs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os from 'node:os'
import { runInRepo, cd, $ } from '../utils'
import { RunOptions } from '../types'

Expand All @@ -14,9 +15,9 @@ export async function test(options: RunOptions) {
test: [
async () => {
cd('tests')
await $`pnpm test:builder:rspack`
await $`pnpm test:framework`
await $`pnpm test:garfish:rspack`
await $`npm test:builder:rspack`
await $`npm test:framework -- --maxWorkers=${os.cpus().length}`
await $`npm test:garfish:rspack`
},
],
})
Expand Down

0 comments on commit a8c6222

Please sign in to comment.