MCPcopy
hub / github.com/jestjs/jest / sleep

Function sleep

e2e/__tests__/watchModeNoAccess.test.ts:17–18  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

15const DIR = path.resolve(os.tmpdir(), 'watch_mode_no_access');
16
17const sleep = (time: number) =>
18 new Promise(resolve => setTimeout(resolve, time));
19
20beforeEach(() => cleanup(DIR));
21afterAll(() => cleanup(DIR));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected