Skip to content

Commit

Permalink
the working version
Browse files Browse the repository at this point in the history
  • Loading branch information
sihui committed Oct 29, 2019
1 parent 541add2 commit e6ec9c0
Show file tree
Hide file tree
Showing 4 changed files with 1,836 additions and 1,240 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/env"]
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
transform: {
'\\.m?jsx?$': 'esm'
"^.+\\.[t|j]sx?$": "babel-jest"
},
moduleNameMapper: {
'^anotherRoot/(.*)$': '<rootDir>/lib/anotherRoot/$1'
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"test": "npx jest --runInBand --no-cache --config jest.config.js"
},
"dependencies": {
"esm": "3.1.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"react": "16.3.0",
"react-dom": "16.3.0"
},
"devDependencies": {
"jest": "^23.6.0"
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"jest": "^24.9.0"
}
}
Loading

0 comments on commit e6ec9c0

Please sign in to comment.