Skip to content

Commit

Permalink
fix test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanMcPherson committed Dec 16, 2023
1 parent e599dd0 commit 32cb635
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
if: always()
with:
files: |
test-results/**/*.xml
test-results/junit.xml
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ module.exports = {
lines: 95,
statements: 95
}
}
},
reporters: ['default', 'jest-junit']
};
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "'./dist/index.d.ts",
"files": ["/dist/*"],
"files": [
"/dist/*"
],
"scripts": {
"build": "tsup",
"test": "jest --config=./jest.config.js"
Expand All @@ -24,6 +26,12 @@
"bugs": {
"url": "https://github.com/DuncanMcPherson/test-utils/issues"
},
"jest-junit": {
"outputDirectory": "./test-results",
"classNameTemplate": "{classname}",
"titleTemplate": "{title}",
"ancestorSeparator": ">"
},
"homepage": "https://github.com/DuncanMcPherson/test-utils#readme",
"devDependencies": {
"@babel/core": "^7.23.5",
Expand All @@ -32,6 +40,7 @@
"@types/jest": "^29.5.11",
"@types/lodash": "^4.14.202",
"jest-jasmine2": "^29.7.0",
"jest-junit": "^16.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
Expand Down

0 comments on commit 32cb635

Please sign in to comment.