MCPcopy
hub / github.com/vitest-dev/vitest / sort

Method sort

test/coverage-test/test/isolation.test.ts:60–67  ·  view source on GitHub ↗
(files: TestSpecification[])

Source from the content-addressed store, hash-verified

58
59class Sorter {
60 sort(files: TestSpecification[]) {
61 return files.sort((a) => {
62 if (a.moduleId.includes('isolation-1')) {
63 return -1
64 }
65 return 1
66 })
67 }
68
69 shard(files: TestSpecification[]) {
70 return files

Callers 9

sequencers.test.tsFile · 0.45
equalsMethod · 0.45
reportCoverageMethod · 0.45
parsePathsFunction · 0.45
shard.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected