crashtest docs

Fastify

Fastify’s own app.inject() is the door: real serialization, real schema validation, real error handling production sees - just no network.

// crashtest.config.js
import Fastify from 'fastify';
const app = Fastify();
// ... register your real routes/plugins on app. Do NOT call app.listen().

export default {
  adapters: { fastify: { app: await app.ready() } },
  routeAliases: {
    enroll:  { route: 'app', path: '/enroll' },
    device:  { route: 'app', path: '/device' },
    burst:   { route: 'app', path: '/enroll' },
    admin:   { route: 'app', path: '/enroll' },
    kvwrite: { route: 'app', path: '/enroll' },
  },
  moduleCtx: {
    state: { route: 'device', query: true, mustDenyIds: ['ghost-1', 'ghost-2'] },
  },
  env: { secrets: { CRASHTEST_SECRET: 'fake-secret-not-real-42' } },
  seed: 0xC0FFEE,
};

Notes