This commit is contained in:
Peter deHaan 2024-07-12 13:54:29 -07:00
Родитель 1798df6df6
Коммит d16ad7e43d
Не найден ключ, соответствующий данной подписи
4 изменённых файлов: 56 добавлений и 7 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -36,6 +36,7 @@ storybook-static/
# testing
/coverage
jest-junit.xml
# next.js
/.next/

Просмотреть файл

@ -51,12 +51,12 @@ const customJestConfig = {
coverageProvider: "v8",
// A list of reporter names that Jest uses when writing coverage reports
// coverageReporters: [
// "json",
// "text",
// "lcov",
// "clover"
// ],
coverageReporters: [
// "json",
"text",
// "lcov",
"clover",
],
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
@ -133,7 +133,20 @@ const customJestConfig = {
// projects: undefined,
// Use this configuration option to add custom reporters to Jest
// reporters: undefined,
reporters: [
"default",
[
"jest-junit",
{
addFileAttribute: "true",
ancestorSeparator: " ",
outputName: "jest-junit.xml",
suiteNameTemplate: "{filename}",
titleTemplate: "{title}",
usePathForSuiteName: true,
},
],
],
// Automatically reset mock state before every test
resetMocks: true,

34
package-lock.json сгенерированный
Просмотреть файл

@ -91,6 +91,7 @@
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"jest-fail-on-console": "^3.3.0",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.5",
"mjml-browser": "^4.15.3",
"prettier": "3.3.2",
@ -21583,6 +21584,32 @@
"fsevents": "^2.3.2"
}
},
"node_modules/jest-junit": {
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz",
"integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
"mkdirp": "^1.0.4",
"strip-ansi": "^6.0.1",
"uuid": "^8.3.2",
"xml": "^1.0.1"
},
"engines": {
"node": ">=10.12.0"
}
},
"node_modules/jest-junit/node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"dev": true,
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/jest-leak-detector": {
"version": "29.7.0",
"resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz",
@ -31159,6 +31186,13 @@
}
}
},
"node_modules/xml": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
"integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==",
"dev": true,
"license": "MIT"
},
"node_modules/xml-name-validator": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",

Просмотреть файл

@ -137,6 +137,7 @@
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"jest-fail-on-console": "^3.3.0",
"jest-junit": "^16.0.0",
"lint-staged": "^15.2.5",
"mjml-browser": "^4.15.3",
"prettier": "3.3.2",