Moving Jest setup and consolidating
This commit is contained in:
1 parent
2904519ff5
commit
fcba4b75ec
4 files changed
+18
-15
No files matched your search
@@ -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