Skip to content

Commit 4a51c05

Browse files
committed
Generate junit.xml; ignore in git
1 parent c80ce77 commit 4a51c05

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ site/.eslintcache
2020
site/.next/
2121
site/node_modules/
2222
site/storybook-static/
23+
site/test_results/
2324
site/yarn-error.log
2425
coverage/
2526

site/.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ vendor
66
out
77
coverage
88
.next
9-
storybook-static
9+
storybook-static
10+
test_results

site/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ yarn-error.log
1515
coverage/
1616
out/
1717
storybook-static/
18+
test_results/

site/jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
coverageReporters: ["text", "lcov"],
1010
displayName: "test",
1111
preset: "ts-jest",
12+
1213
roots: ["<rootDir>"],
1314
setupFilesAfterEnv: ["<rootDir>/_jest/setupTests.ts"],
1415
transform: {
@@ -43,4 +44,10 @@ module.exports = {
4344
"!<rootDir>/out/**/*.*",
4445
"!<rootDir>/storybook-static/**/*.*",
4546
],
47+
reporters: [ "default",
48+
["jest-junit", {
49+
suiteName: "Front-end Jest Tests",
50+
outputDirectory: "./test_results",
51+
outputName: "junit.xml",
52+
}]],
4653
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy