@zimic/interceptor
Version:
Next-gen TypeScript-first HTTP intercepting and mocking
13 lines (11 loc) • 475 B
text/typescript
import { HttpInterceptorType, UnhandledRequestStrategy } from '../interceptor/types/options';
export const DEFAULT_UNHANDLED_REQUEST_STRATEGY = Object.freeze({
local: Object.freeze<UnhandledRequestStrategy.LocalDeclaration>({
action: 'reject',
log: true,
}),
remote: Object.freeze<UnhandledRequestStrategy.RemoteDeclaration>({
action: 'reject',
log: true,
}),
} satisfies Record<HttpInterceptorType, Readonly<UnhandledRequestStrategy.Declaration>>);