MCPcopy
hub / github.com/directus/directus / error-handler.test.ts

File error-handler.test.ts

api/src/middleware/error-handler.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import http from 'node:http';
2import type { AddressInfo } from 'node:net';
3import { useEnv } from '@directus/env';
4import { createError, InvalidCredentialsError, InvalidTokenError, TokenExpiredError } from '@directus/errors';

Callers

nothing calls this directly

Calls 6

createErrorFunction · 0.90
describeFunction · 0.85
setupMcpMocksFunction · 0.85
expectMcpBearerChallengeFunction · 0.85
startAppFunction · 0.70
jsonMethod · 0.45

Tested by

no test coverage detected