diff --git a/package.json b/package.json index 0776c8ad0f..40d6b3a2be 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,7 @@ "generate": "node tasks/generate-json-schema-to-ts.js && node tasks/generate-mono-schema.js", "prebuild": "npm run generate", "build": "tsc -b && lerna run build", - "test": "npm run mocha", - "mocha": "lerna run test --stream --concurrency 4", + "test": "lerna run test --stream --concurrency 2", "e2e": "cd e2e && npm ci && npm t && cd ..", "perf": "cd perf && npm ci && npm t && cd ..", "start": "tsc -b -w", diff --git a/packages/api/.mocharc.jsonc b/packages/api/.mocharc.jsonc index 7aa86ca6b3..907a3f97fc 100644 --- a/packages/api/.mocharc.jsonc +++ b/packages/api/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": ["test/setup.js"] + "require": ["test/setup.js"], + "timeout": 10000 } diff --git a/packages/core/.mocharc.jsonc b/packages/core/.mocharc.jsonc index 7cee2a58be..3c32c9ff9d 100644 --- a/packages/core/.mocharc.jsonc +++ b/packages/core/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": ["./test/setup.js"] + "require": ["./test/setup.js"], + "timeout": 10000 } diff --git a/packages/jasmine-runner/test/integration/memory-leak.it.spec.ts b/packages/jasmine-runner/test/integration/memory-leak.it.spec.ts index 28aa4eff5b..6eccb716a0 100644 --- a/packages/jasmine-runner/test/integration/memory-leak.it.spec.ts +++ b/packages/jasmine-runner/test/integration/memory-leak.it.spec.ts @@ -7,7 +7,7 @@ import { expect } from 'chai'; import { JasmineTestRunner } from '../../src'; describe(JasmineTestRunner.name, () => { - it('should not leak memory when running multiple times (#2461)', async () => { + it('should not leak memory when running multiple times (#2461)', async function () { const childProcess = await execa.node(path.resolve(__dirname, 'memory-leak.worker.js'), [], { stdio: 'pipe', nodeOptions: ['--max-old-space-size=32', '--max-semi-space-size=1'], diff --git a/packages/jest-runner/.mocharc.jsonc b/packages/jest-runner/.mocharc.jsonc index dc3280aa96..799f079d25 100644 --- a/packages/jest-runner/.mocharc.jsonc +++ b/packages/jest-runner/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": "test/setup.js" + "require": "test/setup.js", + "timeout": 10000 } diff --git a/packages/karma-runner/.mocharc.jsonc b/packages/karma-runner/.mocharc.jsonc index dc3280aa96..799f079d25 100644 --- a/packages/karma-runner/.mocharc.jsonc +++ b/packages/karma-runner/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": "test/setup.js" + "require": "test/setup.js", + "timeout": 10000 } diff --git a/packages/mocha-runner/.mocharc.jsonc b/packages/mocha-runner/.mocharc.jsonc index dc3280aa96..799f079d25 100644 --- a/packages/mocha-runner/.mocharc.jsonc +++ b/packages/mocha-runner/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": "test/setup.js" + "require": "test/setup.js", + "timeout": 10000 } diff --git a/packages/typescript-checker/.mocharc.jsonc b/packages/typescript-checker/.mocharc.jsonc index 8dedcc00ec..fd7a9c163b 100644 --- a/packages/typescript-checker/.mocharc.jsonc +++ b/packages/typescript-checker/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": ["dist/test/setup.js"] + "require": ["dist/test/setup.js"], + "timeout": 10000 } diff --git a/packages/typescript-checker/package.json b/packages/typescript-checker/package.json index 79b6459b21..323fd99538 100644 --- a/packages/typescript-checker/package.json +++ b/packages/typescript-checker/package.json @@ -8,7 +8,7 @@ "mocha": "mocha", "test:all": "npm run test:unit && npm run test:integration", "test:unit": "mocha 'dist/test/unit/**/*.js'", - "test:integration": "mocha --timeout 10000 'dist/test/integration/**/*.js'", + "test:integration": "mocha 'dist/test/integration/**/*.js'", "stryker": "node ../core/bin/stryker run" }, "repository": { diff --git a/packages/util/.mocharc.jsonc b/packages/util/.mocharc.jsonc index 7aa86ca6b3..907a3f97fc 100644 --- a/packages/util/.mocharc.jsonc +++ b/packages/util/.mocharc.jsonc @@ -1,3 +1,4 @@ { - "require": ["test/setup.js"] + "require": ["test/setup.js"], + "timeout": 10000 }