Skip to content

Commit 1326c6e

Browse files
authoredJan 12, 2024
feat: support case-insensitive path matching in cli (fix #3567) (#4911)
1 parent ccb2583 commit 1326c6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎examples/vitesse/src/auto-import.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ declare global {
6161
// for type re-export
6262
declare global {
6363
// @ts-ignore
64-
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
64+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
6565
}

‎packages/vitest/src/node/workspace.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ export class WorkspaceProject {
256256

257257
if (filters.length) {
258258
return testFiles.filter((t) => {
259-
const testFile = relative(dir, t)
259+
const testFile = relative(dir, t).toLocaleLowerCase()
260260
return filters.some((f) => {
261261
const relativePath = f.endsWith('/') ? join(relative(dir, f), '/') : relative(dir, f)
262-
return testFile.includes(f) || testFile.includes(relativePath)
262+
return testFile.includes(f.toLocaleLowerCase()) || testFile.includes(relativePath.toLocaleLowerCase())
263263
})
264264
})
265265
}

0 commit comments

Comments
 (0)
Please sign in to comment.