MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / sleep

Function sleep

src/__tests__/stopwatch.js:40–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40const sleep = t => new Promise(resolve => setTimeout(resolve, t))
41
42test('unmounts a component', async () => {
43 const {unmount, container} = render(<StopWatch />)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…