Skip to content

Configuration and frameworks ​

Put shipwitness.json at the project root. Unknown settings produce an error.

json
{
  "mandatory": ["build", "test", "api", "migrations"],
  "concurrency": 2,
  "timeoutMs": 120000,
  "minimumSeverity": "high",
  "environment": ["APP_URL"],
  "environmentFile": ".env",
  "api": [
    {
      "url": "http://127.0.0.1:4173/health",
      "status": 200,
      "fields": { "ready": "boolean" }
    }
  ],
  "deployment": [],
  "browser": {
    "url": "http://127.0.0.1:4173/",
    "selector": "main",
    "baseline": "baselines/desktop.png"
  },
  "migrations": ["db/001.sql"],
  "requirements": { "REQ-01": ["api", "test"] }
}

Start your application separately. Endpoint checks send GET requests without credentials and verify status and top-level JSON field types. Browser checks examine desktop and mobile overflow, uncaught page errors, and axe accessibility findings. The visual check compares the exact desktop PNG and stores a current screenshot. Review that image, then copy it manually to the configured baseline path when you intend to accept a change. Keep OS, browser version, fonts, viewport and fixture data stable.

The engine detects Next.js, Nuxt, SvelteKit, Astro, Vite, React, Vue, Express, Fastify and NestJS from the root manifest. Checks use project scripts rather than framework-specific build logic. The tested execution adapters are npm and pnpm. Yarn and Bun can be detected. An explicit package manager in the manifest takes precedence over lockfile inference.

Policies require each ID in mandatory to produce a passing result. Use --mandatory to add operator requirements without editing the file. Requirement mappings report whether every referenced check passed. Add mapped checks to mandatory to enforce a release gate.