Skip to content

Commit

Permalink
chore: update jest and babel
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 9, 2018
1 parent 239f9f1 commit 8c5048e
Show file tree
Hide file tree
Showing 5 changed files with 2,249 additions and 1,613 deletions.
22 changes: 0 additions & 22 deletions .babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = {
presets: ['@babel/preset-env'],
}
14 changes: 14 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/*.js',
],
moduleFileExtensions: ['js', 'jsx', 'json'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
testURL: 'http://localhost/',
}
33 changes: 11 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@
],
"license": "MIT",
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.14",
"babel-jest": "^23.0.0",
"babel-preset-env": "^1.6.1",
"codecov": "^3.0.0",
"eslint": "^5.0.0",
"eslint-config-posva": "^2.0.0",
"jest": "^22.4.3",
"vue": "^2.5.16",
"vue-template-compiler": "^2.5.16"
"@babel/core": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"@vue/test-utils": "^1.0.0-beta.26",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"codecov": "^3.1.0",
"eslint": "^5.9.0",
"eslint-config-posva": "^2.0.3",
"jest": "^23.6.0",
"vue": "^2.5.18",
"vue-template-compiler": "^2.5.18"
},
"repository": {
"type": "git",
Expand All @@ -52,18 +54,5 @@
"bugs": {
"url": "https://github.com/posva/vue-coerce-props/issues"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/src/*.js"
],
"moduleFileExtensions": [
"js",
"json"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
}
},
"homepage": "https://github.com/posva/vue-coerce-props#readme"
}
Loading

0 comments on commit 8c5048e

Please sign in to comment.