diff --git a/.circleci/config.yml b/.circleci/config.yml index 63e5e7a61ec2..2360ec2b839d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -392,6 +392,8 @@ jobs: - run: name: Test command: yarn test --coverage --runInBand --ci + - store_test_results: + path: junit.xml - persist_to_workspace: root: . paths: diff --git a/.gitignore b/.gitignore index 423ff6ec3edc..c0b4b25e9d31 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ tsconfig.tsbuildinfo lib/manager-webpack4/prebuilt lib/manager-webpack5/prebuilt examples/angular-cli/addon-jest.testresults.json +junit.xml # Yarn stuff /**/.yarn/* diff --git a/jest.config.js b/jest.config.js index c835f5182a38..37908eba2454 100644 --- a/jest.config.js +++ b/jest.config.js @@ -97,4 +97,5 @@ module.exports = { modulePathIgnorePatterns: ['/dist/.*/__mocks__/'], moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'], watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'], + reporters: ['default', 'jest-junit'], }; diff --git a/package.json b/package.json index fb3c433632f0..d67eb462a476 100644 --- a/package.json +++ b/package.json @@ -253,6 +253,7 @@ "jest-enzyme": "^7.1.2", "jest-image-snapshot": "^4.3.0", "jest-jasmine2": "^26.6.3", + "jest-junit": "^13.0.0", "jest-os-detection": "^1.3.1", "jest-raw-loader": "^1.0.1", "jest-serializer-html": "^7.0.0", diff --git a/yarn.lock b/yarn.lock index 95694456b9d6..db517d03b24b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8321,6 +8321,7 @@ __metadata: jest-enzyme: ^7.1.2 jest-image-snapshot: ^4.3.0 jest-jasmine2: ^26.6.3 + jest-junit: ^13.0.0 jest-os-detection: ^1.3.1 jest-raw-loader: ^1.0.1 jest-serializer-html: ^7.0.0 @@ -27818,6 +27819,18 @@ __metadata: languageName: node linkType: hard +"jest-junit@npm:^13.0.0": + version: 13.0.0 + resolution: "jest-junit@npm:13.0.0" + dependencies: + mkdirp: ^1.0.4 + strip-ansi: ^6.0.1 + uuid: ^8.3.2 + xml: ^1.0.1 + checksum: 470028c9e7c0143ae28a30dd4760dc67f62682dd927344b33e02e57812524b3d3c4233703756f49f8fc67ef0c944084af69b3a6f396514f78196e43e23e37b09 + languageName: node + linkType: hard + "jest-leak-detector@npm:^24.9.0": version: 24.9.0 resolution: "jest-leak-detector@npm:24.9.0" @@ -47413,6 +47426,13 @@ __metadata: languageName: node linkType: hard +"xml@npm:^1.0.1": + version: 1.0.1 + resolution: "xml@npm:1.0.1" + checksum: 04bcc9b8b5e7b49392072fbd9c6b0f0958bd8e8f8606fee460318e43991349a68cbc5384038d179ff15aef7d222285f69ca0f067f53d071084eb14c7fdb30411 + languageName: node + linkType: hard + "xmlbuilder@npm:~11.0.0": version: 11.0.1 resolution: "xmlbuilder@npm:11.0.1"