// DOCUMENTATION

code-check tests

Lifecycle tests, fingerprint suite, and site integration scripts.

Development

code-check/ is Koko's integration and regression test infrastructure — separate from unit tests in src/testing/.

Directory layout

code-check/
  lifecycle/    # Browser lifecycle and realm correctness
  suite/        # Fingerprint / bot-detection regression
  local/        # Offline HTML fixtures (CreepJS, engine probe)
  sites/        # Per-site integration scripts
  features/     # Per-engine feature checks (canvas, webgl, worker)
  bench/        # Benchmark runners and report renderers

Lifecycle tests

Exercise navigation ordering, realm isolation, WindowProxy semantics, and teardown correctness. Critical for automation stability — run before releases.

Fingerprint suite

npm run test:creepjs:compare
npm run test:creepjs:local
npm run test:browserleaks
npm run test:profile -- --profile chrome-macos-catalina

Site integrations

Per-site scripts in code-check/sites/ for real-world regression (Turnstile, Google SERP skeleton, etc.).

Local fixtures

Offline HTML in code-check/local/ and koko-test/ — no network required for core probes.

Benchmarks

See Reproduce locally for npm run bench:* commands.