fix: add artifact handling for API v2 E2E tests (#26249)
* fix: add artifact handling for API v2 E2E tests - Add jest-junit reporter to generate JUnit XML test results - Update workflow to upload from correct path (apps/api/v2/test-results) - Add if-no-files-found: ignore and retention-days: 30 for consistency Co-Authored-By: [email protected] <[email protected]> * Apply suggestion from @keithwillcode --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
2a6a8e635c
commit
55805f081d
4 files changed
+35
-2
No files matched your search
+11
-1
@@ -32,7 +32,17 @@ const config: Config = {
|
||||
},
|
||||
setupFiles: ["<rootDir>/test/setEnvVars.ts", "jest-date-mock"],
|
||||
setupFilesAfterEnv: ["<rootDir>/test/jest.setup-e2e.ts"],
|
||||
reporters: ["default", "jest-summarizing-reporter"],
|
||||
reporters: [
|
||||
"default",
|
||||
"jest-summarizing-reporter",
|
||||
[
|
||||
"jest-junit",
|
||||
{
|
||||
outputDirectory: "./test-results",
|
||||
outputName: "junit.xml",
|
||||
},
|
||||
],
|
||||
],
|
||||
workerIdleMemoryLimit: "512MB",
|
||||
maxWorkers,
|
||||
testPathIgnorePatterns: ["/dist/", "/node_modules/"],
|
||||
|
||||
@@ -103,6 +103,7 @@
|
||||
"concurrently": "9.1.2",
|
||||
"jest": "29.7.0",
|
||||
"jest-date-mock": "1.0.10",
|
||||
"jest-junit": "^16.0.0",
|
||||
"node-mocks-http": "1.16.2",
|
||||
"prettier": "2.8.7",
|
||||
"source-map-support": "0.5.21",
|
||||
|
||||
Reference in new issue
Block a user