Moving Jest setup and consolidating

This commit is contained in:
Jeff Avallone
2018-02-15 17:27:15 -05:00
parent 2904519ff5
commit fcba4b75ec
4 changed files with 18 additions and 15 deletions
+16
View File
@@ -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;
});