Skip to content

Commit

Permalink
Fixed jest issue
Browse files Browse the repository at this point in the history
  • Loading branch information
patw0929 committed Dec 7, 2018
1 parent 3ef602a commit 3b5a269
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-syntax-dynamic-import"
]
],
"env": {
"test": {
"plugins": ["dynamic-import-node"]
}
}
}
1 change: 1 addition & 0 deletions config/jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import jsdom from 'jsdom';
import sinon from 'sinon';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import '@babel/polyfill';

Enzyme.configure({ adapter: new Adapter() });

Expand Down

0 comments on commit 3b5a269

Please sign in to comment.