Skip to content

Commit

Permalink
Use junit
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jun 19, 2019
1 parent af58044 commit 31d324b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- run:
name: Test
command: yarn test
- store_test_results:
path: test-results
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
npm-debug.log
node_modules
dist
test-results
.env
.vscode
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ module.exports = {
setupFiles: [
'<rootDir>/test/polyfills.js',
],
reporters: [
'default',
[
'jest-junit',
{
classNameTemplate: '{classname}',
titleTemplate: '{title}',
addFileAttribute: 'true',
},
],
],
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint-plugin-react": "^7.11.1",
"graphql": "^14.0.2",
"jest": "^23.6.0",
"jest-junit": "6.4.0",
"rollup": "^0.67.1",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.2.0",
Expand All @@ -69,5 +70,8 @@
},
"publishConfig": {
"access": "public"
},
"jest-junit": {
"outputDirectory": "test-results"
}
}

0 comments on commit 31d324b

Please sign in to comment.