Moving Jest setup and consolidating
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import Enzyme from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
||||
const env = { ...process.env };
|
||||
|
||||
beforeEach(() => {
|
||||
process.env = {
|
||||
...process.env
|
||||
};
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
process.env = env;
|
||||
});
|
||||
Reference in New Issue
Block a user