diff --git a/package.json b/package.json index f79bbc625..6f9065642 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,6 @@ "express": "4.21.2", "globals": "15.13.0", "jsdom": "25.0.1", - "junit": "1.4.9", "prettier": "3.4.2", "serve": "14.2.4", "serve-static": "1.16.2", diff --git a/vite.config.ts b/vite.config.ts index d935fbc7a..f7d65b7a5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -161,8 +161,6 @@ export default defineConfig(({ mode }) => { 'json', // Extra for VSCode extension ['lcov', { outputFile: 'lcov.info', silent: true }], - // Extra for codecov test analysis - ['junit', { outputFile: 'test-report.junit.xml', silent: true }], ], exclude: [ ...vitestCoverageConfigDefaultsExclude, @@ -175,6 +173,13 @@ export default defineConfig(({ mode }) => { 'src/main.tsx', ], }, + reporters: [ + 'default', + // Extra for codecov test analysis + ...(env.CI + ? [['junit', { outputFile: 'test-report.junit.xml', silent: true }]] + : []), + ], }, }; }); diff --git a/yarn.lock b/yarn.lock index 373cb0ab3..0dfbb572f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2975,7 +2975,7 @@ __metadata: languageName: node linkType: hard -"brace-expansion@npm:^1.0.0, brace-expansion@npm:^1.1.7": +"brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" dependencies: @@ -3367,15 +3367,6 @@ __metadata: languageName: node linkType: hard -"commander@npm:2.9.0": - version: 2.9.0 - resolution: "commander@npm:2.9.0" - dependencies: - graceful-readlink: "npm:>= 1.0.0" - checksum: 10c0/56bcda1e47f453016ed25d9f300bed9e622842a5515802658adb62792fa2ff9af6ee3f9ff16e058d7b20aacc78fb3baa3e02f982414bae1fb5f198c7cb41d5ad - languageName: node - linkType: hard - "commander@npm:^6.2.1": version: 6.2.1 resolution: "commander@npm:6.2.1" @@ -5102,13 +5093,6 @@ __metadata: languageName: node linkType: hard -"graceful-readlink@npm:>= 1.0.0": - version: 1.0.1 - resolution: "graceful-readlink@npm:1.0.1" - checksum: 10c0/c53e703257e77f8a4495ff0d476c09aa413251acd26684f4544771b15e0ad361d1075b8f6d27b52af6942ea58155a9bbdb8125d717c70df27117460fee295a54 - languageName: node - linkType: hard - "graphemer@npm:^1.4.0": version: 1.4.0 resolution: "graphemer@npm:1.4.0" @@ -5449,7 +5433,6 @@ __metadata: globals: "npm:15.13.0" history: "npm:^5.3.0" jsdom: "npm:25.0.1" - junit: "npm:1.4.9" loglevel: "npm:^1.9.1" lz-string: "npm:^1.5.0" material-react-table: "npm:^2.13.0" @@ -6096,20 +6079,6 @@ __metadata: languageName: node linkType: hard -"junit@npm:1.4.9": - version: 1.4.9 - resolution: "junit@npm:1.4.9" - dependencies: - commander: "npm:2.9.0" - nofs: "npm:0.11.20" - yaku: "npm:0.17.8" - bin: - junit: bin/junit.js - junit-debug: bin/junit-debug.js - checksum: 10c0/b8c62621cf9455b48776245618473d03fce51d237ae3813cf5429698d8ccc9713490f2b24e9a90f330388f12050f3bb3bbc7fdf87a6929d5d35c81b4b1cd8187 - languageName: node - linkType: hard - "keyv@npm:^4.5.4": version: 4.5.4 resolution: "keyv@npm:4.5.4" @@ -6495,15 +6464,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:3.0.3": - version: 3.0.3 - resolution: "minimatch@npm:3.0.3" - dependencies: - brace-expansion: "npm:^1.0.0" - checksum: 10c0/827dcf6d4eb80c5d8a7bdcc5f88ef1c2c35e5d858122effb6bd83965e261417b9a559d3d33332b99ca98ddb7488d435e13046a1f8d6635245b906c59ee0f1185 - languageName: node - linkType: hard - "minimatch@npm:3.1.2, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -6742,16 +6702,6 @@ __metadata: languageName: node linkType: hard -"nofs@npm:0.11.20": - version: 0.11.20 - resolution: "nofs@npm:0.11.20" - dependencies: - minimatch: "npm:3.0.3" - yaku: "npm:0.17.7" - checksum: 10c0/094589dc5fd55c7daf76278f9d8e6cb0b6397e5f7b96aada89176ed09f249f69443a4067d29f94177ecbc28f5058dffa8b31c37ffdb9b4f4aae8bd808995d417 - languageName: node - linkType: hard - "nopt@npm:^7.0.0": version: 7.2.1 resolution: "nopt@npm:7.2.1" @@ -9319,20 +9269,6 @@ __metadata: languageName: node linkType: hard -"yaku@npm:0.17.7": - version: 0.17.7 - resolution: "yaku@npm:0.17.7" - checksum: 10c0/60db9f49446bb8c40bba7129132c1a0f36283e2e5d2e6cc17b2fcc29977fcda6bc618adad2a0e29447f617af4f8007ed44155603d92e1afd5ac38be18a2ab7e6 - languageName: node - linkType: hard - -"yaku@npm:0.17.8": - version: 0.17.8 - resolution: "yaku@npm:0.17.8" - checksum: 10c0/462eaa01716755ad211bb3e1d7b85e2ddf1d4d879e9fde3b66a46282e3d750666d0b4e409e61d095b6fcd2b8f7ee31db23040189f3eff5c469e4229087b10dd1 - languageName: node - linkType: hard - "yallist@npm:^3.0.2": version: 3.1.1 resolution: "yallist@npm:3.1.1"