MockHTTP is an HTTP mock server for testing, built with Fastify and TypeScript.
pnpm install— install dependencies (always use pnpm, not npm)pnpm build— build the projectpnpm test— run linter and tests with coveragepnpm lint— run Biome linter with auto-fixes
- Framework: Vitest with
@vitest/coverage-v8 - Tests are in the
test/directory - Linting: Biome (not ESLint or Prettier)
- Run
pnpm testto ensure all tests pass - Maintain 100% code coverage — add or update tests as needed