From 1361bc28585a279ffdcfc051fcd343e4205976b8 Mon Sep 17 00:00:00 2001 From: Andrew Rumble Date: Wed, 5 Nov 2025 11:34:09 +0000 Subject: [PATCH] Split test projects so we can apply --no-file-parallelism GitOrigin-RevId: 37f11a9e363bcf91dd77f62ef191f62d61e3a94f --- services/web/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/package.json b/services/web/package.json index 94d7ea1c67..9e3a542c96 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -15,7 +15,9 @@ "test:unit:app": "npm run test:unit:run_dir -- test/unit/src", "test:unit:mocha": "npm run test:unit:mocha:run_dir -- test/unit/src modules/*/test/unit/src", "test:unit:mocha:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/unit/bootstrap.js --extension=js", - "test:unit:esm": "vitest run", + "test:unit:esm": "npm run test:unit:esm:parallel && npm run test:unit:esm:sequential", + "test:unit:esm:parallel": "vitest run --project=Parallel", + "test:unit:esm:sequential": "vitest run --project=Sequential --no-file-parallelism", "test:unit:esm:watch": "vitest", "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,jsx,mjs,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,jsx,ts,tsx}' --ignore '**/helpers/**/*.{js,jsx,ts,tsx}' test/frontend modules/*/test/frontend", "test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",