Skip to content

Commit

Permalink
fix: use unix separator when splitting paths to apply file filters
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 29, 2023
1 parent f32b152 commit c5545a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/files_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import slash from 'slash'
import { sep } from 'node:path'
import fastGlob from 'fast-glob'
import { pathToFileURL } from 'node:url'
import type { TestFiles } from './types.js'
Expand Down Expand Up @@ -57,7 +56,7 @@ export class FilesManager {
}

const filterSegments = filter.split('/').reverse()
const fileSegments = filenameWithoutTestSuffix.split(sep).reverse()
const fileSegments = filenameWithoutTestSuffix.split('/').reverse()
console.log({ filterSegments, fileSegments })

return filterSegments.every((segment, index) => {
Expand Down

0 comments on commit c5545a7

Please sign in to comment.