vue3-yuanma/scripts/filter-e2e.js

18 lines
337 B
JavaScript
Raw Normal View History

const path = require('path')
const e2eTests = [
'vue/__tests__/Transition',
'vue/__tests__/TransitionGroup',
'vue/examples/'
]
2021-11-15 12:14:57 +08:00
module.exports = list => {
return {
filtered: list
.filter(t => e2eTests.some(tt => t.includes(path.normalize(tt))))
2021-11-15 12:14:57 +08:00
.map(test => ({ test }))
}
}
module.exports.e2eTests = e2eTests