Bug: testNamePattern
option unnecessarily requires a leading space for an exact match.
#6185
Closed
6 tasks done
Labels
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
There is a example test.
We require a leading space for an exact match by
testNamePattern
.This is also the same
describe
name.On the other hand, Jest can run it by '^foo$'. Is this behavior as expected in Vitest?
Reproduction
pnpm i -D vitest
pnpm vitest run -t '^foo$'
and get the skipped result.pnpm vitest run -t '^ foo$'
and get the success result.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: