Skip to content

Commit 5e077fc

Browse files
committed
Start testing React Componenets
1 parent b3cb04c commit 5e077fc

File tree

3 files changed

+951
-587
lines changed

3 files changed

+951
-587
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module.exports = {
77
node: 'current'
88
}
99
}
10-
]
10+
], '@babel/preset-react'
1111
]
1212
};

testutils/jest-setup-files.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
import { configure } from 'enzyme';
2+
import Adapter from 'enzyme-adapter-react-16';
3+
14
global.fetch = require('jest-fetch-mock');
5+
configure({ adapter: new Adapter() });
6+

0 commit comments

Comments
 (0)