diff --git a/tests/modernjs.ts b/tests/modernjs.ts index 8063774..248b2d5 100644 --- a/tests/modernjs.ts +++ b/tests/modernjs.ts @@ -1,3 +1,4 @@ +import os from 'node:os' import { runInRepo, cd, $ } from '../utils' import { RunOptions } from '../types' @@ -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` }, ], })