MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / delay

Function delay

api/src/plugins/error-handling.test.ts:28–28  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

26import redirectWithMessage, { formatMessage } from './redirect-with-message.js';
27
28const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
29
30describe('errorHandling', () => {
31 let fastify: FastifyInstance;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected