diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml index 483b6ede..d4a31f31 100644 --- a/.github/workflows/auto-deploy.yml +++ b/.github/workflows/auto-deploy.yml @@ -72,7 +72,7 @@ jobs: - name: Run React tests run: | npm install - npm test -- --coverage + npm test -- --coverage --reporters=jest-junit working-directory: ./empower/react - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/run_codecov_on_pull_request.yml b/.github/workflows/run_codecov_on_pull_request.yml index abea78a1..3bab9121 100644 --- a/.github/workflows/run_codecov_on_pull_request.yml +++ b/.github/workflows/run_codecov_on_pull_request.yml @@ -20,7 +20,7 @@ jobs: - name: Run React tests run: | npm install - npm test -- --coverage + npm test -- --coverage --reporters=jest-junit working-directory: ./empower/react - uses: codecov/codecov-action@v3 with: diff --git a/react/package-lock.json b/react/package-lock.json index f5ee9791..a067cc12 100644 --- a/react/package-lock.json +++ b/react/package-lock.json @@ -28,6 +28,7 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@sentry/webpack-plugin": "^2.20.1", "install": "^0.13.0", + "jest-junit": "^16.0.0", "npm": "^10.8.2", "react-app-rewired": "~2.2.1", "redux-mock-store": "^1.5.4" @@ -13062,6 +13063,54 @@ "node": ">=8" } }, + "node_modules/jest-junit": { + "version": "16.0.0", + "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz", + "integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==", + "dev": true, + "dependencies": { + "mkdirp": "^1.0.4", + "strip-ansi": "^6.0.1", + "uuid": "^8.3.2", + "xml": "^1.0.1" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/jest-junit/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-junit/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-junit/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/jest-leak-detector": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", @@ -23958,6 +24007,12 @@ } } }, + "node_modules/xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==", + "dev": true + }, "node_modules/xml-name-validator": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", diff --git a/react/package.json b/react/package.json index 5f6988c4..cb5b4a11 100644 --- a/react/package.json +++ b/react/package.json @@ -57,6 +57,7 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@sentry/webpack-plugin": "^2.20.1", "install": "^0.13.0", + "jest-junit": "^16.0.0", "npm": "^10.8.2", "react-app-rewired": "~2.2.1", "redux-mock-store": "^1.5.4"