chore: jest junit output for foresight

This commit is contained in:
DIYgod 2022-10-10 18:37:36 +01:00
parent 2bd4fd7b8d
commit 891cd8f5c5
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
3 changed files with 25 additions and 1 deletions

View File

@ -61,6 +61,7 @@ jobs:
test_format: JUNIT
test_framework: JEST
coverage_format: JACOCO/XML
test_path: ./coverage/junit.xml
puppeteer:
runs-on: ubuntu-latest

View File

@ -20,10 +20,17 @@
"format:staged": "eslint \"**/*.{js,yml}\" --fix && node docs/.format/format.js --staged && pretty-quick --staged --verbose --pattern \"**/*.{js,json}\"",
"format:check": "eslint \"**/*.{js,yml}\" && prettier-check \"**/*.{js,json}\"",
"jest": "cross-env NODE_ENV=test jest --runInBand --forceExit --detectOpenHandles",
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --runInBand --forceExit --detectOpenHandles",
"jest:coverage": "cross-env NODE_ENV=test jest --coverage --reporters=default --reporters=jest-junit --runInBand --forceExit --detectOpenHandles",
"jest:watch": "cross-env NODE_ENV=test jest --watch",
"test": "npm run format:check && npm run jest:coverage"
},
"reporters": [
"default",
"jest-junit"
],
"jest-junit" : {
"outputDirectory": "coverage"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DIYgod/RSSHub.git"
@ -55,6 +62,7 @@
"eslint-plugin-yml": "1.2.0",
"fs-extra": "10.1.0",
"jest": "29.1.2",
"jest-junit": "^14.0.1",
"meilisearch": "0.28.0",
"mockdate": "3.0.5",
"nock": "13.2.9",

View File

@ -8285,6 +8285,16 @@ jest-haste-map@^29.1.2:
optionalDependencies:
fsevents "^2.3.2"
jest-junit@^14.0.1:
version "14.0.1"
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-14.0.1.tgz#5b357d6f5d333459585d628a24cd48b5bbc92ba2"
integrity sha512-h7/wwzPbllgpQhhVcRzRC76/cc89GlazThoV1fDxcALkf26IIlRsu/AcTG64f4nR2WPE3Cbd+i/sVf+NCUHrWQ==
dependencies:
mkdirp "^1.0.4"
strip-ansi "^6.0.1"
uuid "^8.3.2"
xml "^1.0.1"
jest-leak-detector@^29.1.2:
version "29.1.2"
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.1.2.tgz#4c846db14c58219430ccbc4f01a1ec52ebee4fc2"
@ -14675,6 +14685,11 @@ xml2js@0.4.23, xml2js@^0.4.19:
sax ">=0.6.0"
xmlbuilder "~11.0.0"
xml@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==
xmlbuilder@^13.0.0:
version "13.0.2"
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-13.0.2.tgz#02ae33614b6a047d1c32b5389c1fdacb2bce47a7"