Skip to content

Commit 5e62432

Browse files
authored
Merge pull request #18 from knaopel/v1.19.0
Fix jest-junit properties
2 parents 863f623 + af9b6e2 commit 5e62432

File tree

4 files changed

+15
-37
lines changed

4 files changed

+15
-37
lines changed

.github/workflows/test-and-build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,28 @@ jobs:
4242
- name: Install dependencies
4343
run: npm install
4444

45+
- name: Make Report Directory
46+
run: mkdir reports
47+
4548
- name: Run Unit tests
4649
run: |
47-
npx jest --coverage --coverageReporters json-summary
50+
npx jest --reporters=default --reporters=jest-junit --coverage --coverageReporters json-summary
4851
4952
- name: Jest Coverage Comment
5053
uses: MishaKav/[email protected]
5154

55+
- name: list files
56+
run: |
57+
ls
58+
ls reports
59+
5260
- name: Test Report
5361
uses: phoenix-actions/test-reporting@v15
5462
id: test-report
5563
if: success() || failure()
5664
with:
5765
name: Jest Tests
58-
path: jest-*.xml
66+
path: reports/jest-*.xml
5967
reporter: jest-junit
6068

6169

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ obj
3232

3333
# Styles Generated Code
3434
*.scss.ts
35+
36+
# test results
37+
jest-junit.xml

jest-junit.xml

Lines changed: 0 additions & 33 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
]
6767
},
6868
"jest-junit": {
69-
"ouputDirectory": "./reports",
69+
"outputDirectory": "./reports",
7070
"outputName": "jest-junit.xml",
71-
"ancestorSeperator": " > ",
71+
"ancestorSeparator": " > ",
7272
"uniqueOutputName": false,
7373
"suiteNameTemplate": "{filepath}",
7474
"classNameTemplate": "{classname}",

0 commit comments

Comments
 (0)