MCPcopy Create free account
hub / github.com/Kong/insomnia / flushTokenFetch

Function flushTokenFetch

packages/insomnia/src/scripting/run-script-quickjs.test.ts:68–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 * lands a microtask later than the call. Awaiting this lets a test assert on `postedMessages`.
67 */
68 const flushTokenFetch = () => new Promise(resolve => setTimeout(resolve, 0));
69
70 beforeEach(async () => {
71 fakeWorker = new FakeWorker();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected