Add dependencies to run jest

This commit is contained in:
Patrick Smith 2018-11-19 21:01:33 -05:00
parent e6ca9d3b7e
commit 4149a4f1d5
3 changed files with 1680 additions and 35 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["env"]
}

View File

@ -6,7 +6,7 @@
"scripts": {
"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",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},
"author": "",
"license": "MIT",
@ -25,12 +25,26 @@
"vue-text-mask": "^6.1.2"
},
"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",
"parcel-bundler": "^1.10.3"
"parcel-bundler": "^1.10.3",
"vue-template-compiler": "2.5.15"
},
"browserslist": [
"last 3 version",
"> 5%",
"IE 10"
]
],
"jest": {
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
},
"snapshotSerializers": [
"<rootDir>/node_modules/jest-serializer-vue"
]
}
}

1692
yarn.lock

File diff suppressed because it is too large Load Diff