Skip to content

Commit

Permalink
chore(tests): generate report name based on mode
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Sep 23, 2024
1 parent b6f1f24 commit 0ed9d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ jobs:
env:
COVERAGE_SUMMARY: ./coverage/coverage-summary.json
PCT: .total.branches.pct + .total.functions.pct + .total.lines.pct + .total.statements.pct
VITEST_REPORT: ./.vitest-reports/blob.json
VITEST_REPORT: ./.vitest-reports/test.blob.json
steps:
- id: checkout
name: Checkout ${{ env.REF_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
],
mockReset: true,
outputFile: {
blob: '.vitest-reports/blob.json',
blob: `.vitest-reports/${env.mode}.blob.json`,
json: path.join('__tests__', 'reports', env.mode + '.json')
},
passWithNoTests: true,
Expand Down

0 comments on commit 0ed9d8a

Please sign in to comment.