test: Reduce memory usage by not requiring stores into all (#2265)

This commit is contained in:
Tom Moor
2021-07-02 11:16:07 -07:00
committed by GitHub
parent 7f1322b7ba
commit 0f01fc5faa
3 changed files with 24 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
import localStorage from '../../__mocks__/localStorage';
import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import "../stores";
Enzyme.configure({ adapter: new Adapter() });

View File

@@ -1,2 +1,2 @@
// @flow
export const runAllPromises = () => new Promise(setImmediate);
export const runAllPromises = () => new Promise<void>(setImmediate);