Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typecheck): run both runtime and typecheck tests if typecheck.include overlaps with include #6256

Merged
merged 19 commits into from
Aug 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: print typecheck tests first before runtime tests for better CLI …
…output
  • Loading branch information
sheremet-va committed Aug 13, 2024
commit 6aa70d6453ffe282f7a7a8cf061251071d664203
11 changes: 10 additions & 1 deletion packages/vitest/src/node/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ export class StateManager {
.flat()
.filter(file => file && !file.local)
}
return Array.from(this.filesMap.values()).flat().filter(file => !file.local)
return Array.from(this.filesMap.values()).flat().filter(file => !file.local).sort((f1, f2) => {
// print typecheck files first
if (f1.meta?.typecheck && f2.meta?.typecheck) {
return 0
}
if (f1.meta?.typecheck) {
return -1
}
return 1
})
}

getFilepaths(): string[] {
Expand Down