Skip to content

Commit b14a70a

Browse files
committed
make jest ignore the e2e test folder because its likely to contain files matching the jest's filename pattern
1 parent 7defca3 commit b14a70a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

template/test/unit/jest.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ module.exports = {
1313
transform: {
1414
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
1515
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
16-
},
16+
},{{#e2e}}
17+
testPathIgnorePatterns: [
18+
'<rootDir>/test/e2e'
19+
],{{/e2e}}
1720
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
1821
setupFiles: ['<rootDir>/test/unit/setup'],
1922
mapCoverage: true,

0 commit comments

Comments
 (0)