diff --git a/Makefile b/Makefile index 9488c897e..ff9d67880 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,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 d9a78a820..245b09081 100644 --- a/web/package.json +++ b/web/package.json @@ -25,6 +25,7 @@ "start:standalone": "npm run ts-node node_modules/.bin/webpack serve --stats-error-details --config webpack.standalone.config.ts", "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",