[next] Fix warnings and errors that appear during test (#2348)

* fix: handle react act errors

* fix: fixed deprecated reporter option
This commit is contained in:
Vinh
2019-06-07 22:01:57 +00:00
committed by Wyatt Johnson
parent d4b99a2a57
commit 5b64d3d14b
17 changed files with 732 additions and 635 deletions
@@ -0,0 +1,7 @@
import TestRenderer from "react-test-renderer";
export default function act(
callback: () => Promise<void> | void | undefined
): Promise<void> | void {
return TestRenderer.act(callback as any) as any;
}
@@ -10,6 +10,7 @@ export {
} from "./removeFragmentRefs";
export { default as createUUIDGenerator } from "./createUUIDGenerator";
export * from "./denormalize";
export { default as act } from "./act";
export { default as limitSnapshotTo } from "./limitSnapshotTo";
export { default as within } from "./within";
export { default as wait } from "./wait";