mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
[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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user