Skip to content

Commit 120c786

Browse files
committed
perf[jest]: clear jest test cache
1 parent 7dc9e68 commit 120c786

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

jest.config.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
module.exports = {
2-
verbose: true,
32
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
4-
transformIgnorePatterns: [
5-
'node_modules/(?!(babel-jest|jest-vue-preprocessor)/)'
6-
],
73
transform: {
84
'^.+\\.vue$': 'vue-jest',
9-
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
5+
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
6+
'jest-transform-stub',
107
'^.+\\.jsx?$': 'babel-jest'
118
},
129
moduleNameMapper: {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:stage": "vue-cli-service build --mode staging",
1111
"preview": "node build/index.js --preview",
1212
"lint": "eslint --ext .js,.vue src",
13-
"test:unit": "vue-cli-service test:unit",
13+
"test:unit": "jest --clearCache && vue-cli-service test:unit",
1414
"test:ci": "npm run lint && npm run test:unit",
1515
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
1616
"new": "plop"

0 commit comments

Comments
 (0)