diff --git a/Makefile b/Makefile index 2f86d82b8..f4a55d3a9 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,10 @@ test-backend: test-frontend: cd web && npm run test:unit +.PHONY: test-frontend-unit +test-frontend-unit: + cd web && npm run test:unit:ci + .PHONY: build-image build-image: ./scripts/build-image.sh diff --git a/web/package.json b/web/package.json index 1d9ded0ec..93fa55c19 100644 --- a/web/package.json +++ b/web/package.json @@ -26,6 +26,7 @@ "dev": "npm run ts-node node_modules/.bin/webpack serve", "start-console": "../scripts/start-console.sh", "test:unit": "TZ=UTC jest --config jest.config.js --passWithNoTests", + "test:unit:ci": "TZ=UTC jest --config jest.config.js --passWithNoTests --maxWorkers=2", "test": "npm run cypress:run:ci", "test-cypress-console": "./node_modules/.bin/cypress open --browser chrome", "test-cypress-console-headless": "node --max-old-space-size=4096 ./node_modules/.bin/cypress run --browser chrome --headless",