Skip to content

Commit c77dc79

Browse files
skovySunil Pai
authored andcommitted
Upgrade Jest and Babel dependencies (#227)
* Upgrade jest and babel packages * Fix jest configuration deprecation * Fix babel configuration to reflect package changes * Use yarn (instead of npm) for script commands * Silence custom errors to avoid creating verbose logs during tests * Update node version for CI * Revert "Use yarn (instead of npm) for script commands" This reverts commit b164e2e. * Revert "Silence custom errors to avoid creating verbose logs during tests" This reverts commit 340d524.
1 parent 558ffa5 commit c77dc79

File tree

3 files changed

+1968
-1212
lines changed

3 files changed

+1968
-1212
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["es2015"],
3-
"plugins": ["transform-object-rest-spread"]
2+
"presets": ["@babel/preset-env"],
3+
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
44
}

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,21 @@
2424
"baseDir": "../"
2525
},
2626
"testEnvironment": "node",
27-
"testPathDirs": [
27+
"roots": [
2828
"transforms",
2929
"bin"
3030
]
3131
},
3232
"devDependencies": {
33+
"@babel/core": "^7.5.4",
34+
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
35+
"@babel/preset-env": "^7.5.4",
3336
"babel-eslint": "^6.0.5",
34-
"babel-jest": "^15.0.0",
35-
"babel-plugin-transform-object-rest-spread": "^6.6.5",
36-
"babel-preset-es2015": "^6.6.0",
37+
"babel-jest": "^24.8.0",
3738
"eslint": "^2.13.1",
3839
"eslint-plugin-react": "^5.2.2",
3940
"fbjs-scripts": "^0.7.1",
40-
"jest": "^17.0.3"
41+
"jest": "^24.8.0"
4142
},
4243
"bin": {
4344
"react-codemod": "./bin/react-codemod.js"

0 commit comments

Comments
 (0)