Skip to content

Commit

Permalink
test: break reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jun 27, 2023
1 parent 66342b5 commit 4b4cd8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"test": "vitest --api -r test/core",
"test:run": "vitest run -r test/core",
"test:all": "CI=true pnpm -r --stream run test --allowOnly",
"test:ci": "CI=true pnpm -r --stream --filter !test-fails --filter !test-browser --filter !test-esm --filter !test-browser run test --allowOnly",
"test:ci:single-thread": "CI=true pnpm -r --stream --filter !test-fails --filter !test-coverage --filter !test-watch --filter !test-bail --filter !test-esm --filter !test-browser run test --allowOnly --no-threads",
"test:ci": "echo skip",
"test:ci:single-thread": "echo skip",
"typecheck": "tsc --noEmit",
"typecheck:why": "tsc --noEmit --explainFiles > explainTypes.txt",
"ui:build": "vite build packages/ui",
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class Vitest {
.finally(async () => {
// can be duplicate files if different projects are using the same file
const specs = Array.from(new Set(paths.map(([, p]) => p)))
await this.report('onFinished', this.state.getFiles(specs), this.state.getUnhandledErrors())
await this.report('onFinished', this.state.getFiles(specs).slice(0, 1), this.state.getUnhandledErrors())
this.runningPromise = undefined
})

Expand Down

0 comments on commit 4b4cd8d

Please sign in to comment.