MCPcopy Create free account
hub / github.com/zxlie/FeHelper / flushPromises

Function flushPromises

test/background-menu.test.js:98–102  ·  view source on GitHub ↗
(times = 5)

Source from the content-addressed store, hash-verified

96}
97
98async function flushPromises(times = 5) {
99 for (let i = 0; i < times; i++) {
100 await Promise.resolve();
101 }
102}
103
104async function loadAndRebuildMenu() {
105 vi.resetModules();

Callers 1

loadAndRebuildMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected