[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: `testNamePattern` adds leading space (#6186)

authored by

Ari Perkkiö and committed by
GitHub
(Jul 26, 2024, 9:08 AM +0200) 073a50c9 d4c005bc

+8 -7
+8 -7
packages/runner/src/collect.ts
··· 77 77 78 78 calculateSuiteHash(file) 79 79 80 + file.tasks.forEach((task) => { 81 + // task.suite refers to the internal default suite object 82 + // it should not be reported 83 + if (task.suite?.id === '') { 84 + delete task.suite 85 + } 86 + }) 87 + 80 88 const hasOnlyTasks = someTasksAreOnly(file) 81 89 interpretTaskModes( 82 90 file, ··· 86 94 config.allowOnly, 87 95 ) 88 96 89 - file.tasks.forEach((task) => { 90 - // task.suite refers to the internal default suite object 91 - // it should not be reported 92 - if (task.suite?.id === '') { 93 - delete task.suite 94 - } 95 - }) 96 97 files.push(file) 97 98 } 98 99