chore: normalize file paths in test filter for windows (#5315)

This commit is contained in:
ygj6 2022-05-12 09:37:12 +08:00 committed by GitHub
parent cb69208a87
commit d0695dad32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
const path = require('path')
const e2eTests = [ const e2eTests = [
'vue/__tests__/Transition', 'vue/__tests__/Transition',
'vue/__tests__/TransitionGroup', 'vue/__tests__/TransitionGroup',
@ -7,7 +9,7 @@ const e2eTests = [
module.exports = list => { module.exports = list => {
return { return {
filtered: list filtered: list
.filter(t => e2eTests.some(tt => t.includes(tt))) .filter(t => e2eTests.some(tt => t.includes(path.normalize(tt))))
.map(test => ({ test })) .map(test => ({ test }))
} }
} }