Add dependencies to run jest
This commit is contained in:
parent
e6ca9d3b7e
commit
4149a4f1d5
18
package.json
18
package.json
@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "parcel watch js/index.js -d static/assets --public-url /static/assets -o index.js --no-autoinstall",
|
"watch": "parcel watch js/index.js -d static/assets --public-url /static/assets -o index.js --no-autoinstall",
|
||||||
"build": "parcel build js/index.js -d static/assets --public-url /static/assets -o index.js",
|
"build": "parcel build js/index.js -d static/assets --public-url /static/assets -o index.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -25,12 +25,26 @@
|
|||||||
"vue-text-mask": "^6.1.2"
|
"vue-text-mask": "^6.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vue/test-utils": "^1.0.0-beta.25",
|
||||||
|
"babel-jest": "^23.6.0",
|
||||||
|
"babel-preset-env": "^1.7.0",
|
||||||
|
"jest": "^23.6.0",
|
||||||
|
"jest-serializer-vue": "^2.0.2",
|
||||||
"node-sass": "^4.9.2",
|
"node-sass": "^4.9.2",
|
||||||
"parcel-bundler": "^1.10.3"
|
"parcel-bundler": "^1.10.3",
|
||||||
|
"vue-template-compiler": "2.5.15"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 3 version",
|
"last 3 version",
|
||||||
"> 5%",
|
"> 5%",
|
||||||
"IE 10"
|
"IE 10"
|
||||||
|
],
|
||||||
|
"jest": {
|
||||||
|
"transform": {
|
||||||
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
|
||||||
|
},
|
||||||
|
"snapshotSerializers": [
|
||||||
|
"<rootDir>/node_modules/jest-serializer-vue"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user