File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import type { Vitest } from './core'
2
2
import type { TestProject } from './project'
3
3
import type { TestSpecification } from './spec'
4
4
import { existsSync } from 'node:fs'
5
- import mm from 'micromatch'
6
5
import { join , relative , resolve } from 'pathe'
6
+ import pm from 'picomatch'
7
7
import { isWindows } from '../utils/env'
8
8
import { groupFilters , parseFilter } from './cli/filter'
9
9
import { GitNotFoundError , IncludeTaskLocationDisabledError , LocationFilterFileNotFoundError } from './errors'
@@ -139,7 +139,8 @@ export class VitestSpecifications {
139
139
}
140
140
141
141
const forceRerunTriggers = this . vitest . config . forceRerunTriggers
142
- if ( forceRerunTriggers . length && mm ( related , forceRerunTriggers ) . length ) {
142
+ const matcher = forceRerunTriggers . length ? pm ( forceRerunTriggers ) : undefined
143
+ if ( matcher && related . some ( file => matcher ( file ) ) ) {
143
144
return specs
144
145
}
145
146
You can’t perform that action at this time.
0 commit comments