diff --git a/.gitignore b/.gitignore index 43b2b89..1a46cda 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /.vscode /build /coverage - +**/junit.xml diff --git a/jest.config.js b/jest.config.js index b1a9830..40dd1ae 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,4 +2,5 @@ module.exports = { transform: { '^.+\\.(js|jsx)$': 'babel-jest', }, + reporters: ['default', 'jest-junit'], }; diff --git a/package-lock.json b/package-lock.json index d06c829..dc4a172 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "file-loader": "^6.2.0", "html-webpack-plugin": "^5.0.0", "jest": "^29.7.0", + "jest-junit": "^16.0.0", "mini-css-extract-plugin": "^1.3.5", "webpack": "^5.21.1", "webpack-cli": "^4.5.0", @@ -9325,6 +9326,33 @@ "node": ">=8.0" } }, + "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-leak-detector": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", @@ -15347,6 +15375,12 @@ "xtend": "^4.0.0" } }, + "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-parse-from-string": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/xml-parse-from-string/-/xml-parse-from-string-1.0.1.tgz", diff --git a/package.json b/package.json index ea893c3..1c1bb2a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "webpack serve --mode=development --open=false", "build": "webpack --mode=production", "lint": "eslint -c .eslintrc.json src --fix", - "test": "jest --coverage" + "test": "jest --coverage --verbose" }, "repository": { "type": "git", @@ -33,6 +33,7 @@ "file-loader": "^6.2.0", "html-webpack-plugin": "^5.0.0", "jest": "^29.7.0", + "jest-junit": "^16.0.0", "mini-css-extract-plugin": "^1.3.5", "webpack": "^5.21.1", "webpack-cli": "^4.5.0",