Adding Jest for testing

This commit is contained in:
Jeff Avallone committed 2019-01-04 18:38:49 -05:00
1 parent 6cff032efb
commit 8a3471b916
28 files changed
+5523 -54

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
const babelOptions = {
presets: ['babel-preset-gatsby']
};
module.exports = require('babel-jest').createTransformer(babelOptions);
+8
View File
@@ -0,0 +1,8 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
global.___loader = {
enqueue: jest.fn()
};