Skip to content

Commit

Permalink
Move jest config to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
dfcook committed Dec 12, 2018
1 parent fb0ba79 commit 05576cf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 28 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
moduleDirectories: [
'node_modules',
'src'
],
moduleFileExtensions: [
'js',
'vue'
],
coverageDirectory: './coverage',
collectCoverageFrom: [
'**/src/**/*.js',
'!**/tests/__tests__/**',
'!**/node_modules/**'
],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/npm/',
'<rootDir>/tests/__tests__/components/'
],
transform: {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
},
snapshotSerializers: [
'<rootDir>/node_modules/jest-serializer-vue'
]
}
28 changes: 0 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,33 +58,5 @@
"vue-jest": "^3.0.2",
"vue-router": "^3.0.2",
"vuex": "^3.0.1"
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"js",
"vue"
],
"coverageDirectory": "./coverage",
"collectCoverageFrom": [
"**/src/**/*.js",
"!**/tests/__tests__/**",
"!**/node_modules/**"
],
"testPathIgnorePatterns": [
"/node_modules/",
"<rootDir>/npm/",
"<rootDir>/tests/__tests__/components/"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
},
"snapshotSerializers": [
"<rootDir>/node_modules/jest-serializer-vue"
]
}
}

0 comments on commit 05576cf

Please sign in to comment.