MCPcopy Create free account
hub / github.com/bytebase/bytebase / flush

Function flush

frontend/src/react/components/DatabaseSelect.test.tsx:103–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101
102// Let the mount-time fetch's .then() microtask resolve and re-render.
103const flush = async () => {
104 await act(async () => {
105 await Promise.resolve();
106 await Promise.resolve();
107 });
108};
109
110beforeEach(async () => {
111 vi.clearAllMocks();

Callers 1

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected