Skip to content

Commit

Permalink
chore: Format file paths in filter-e2e.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed Jan 24, 2022
1 parent 6b68898 commit c164217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/filter-e2e.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const e2eTests = ['/Transition', '/TransitionGroup', '/examples/']
const path = require('path')

module.exports = list => {
return {
filtered: list
.filter(t => e2eTests.some(tt => t.includes(tt)))
.filter(t => e2eTests.some(tt => t.includes(path.normalize(tt))))
.map(test => ({ test }))
}
}
Expand Down

0 comments on commit c164217

Please sign in to comment.