Skip to content

Choose the verification boundary

Match evidence to the change

ChangeCommandEvidence
Package behaviorpnpm --filter @ahoo-wang/fetcher testFocused Vitest suite
All package behaviorpnpm test:unitPackage tests, coverage and declared type checks
Service integrationpnpm test:itRequires the integration README service setup
Storybook interactionspnpm test:storybookBrowser interaction assertions
Documentationpnpm --dir wiki buildBuild and internal links
Reference coveragenode --test wiki/test/documentation.test.mjsBilingual page metadata and generated corpus

Tests belong in the package’s existing test layout. React and Viewer use jsdom; Viewer loads test/setup.ts. Storybook browser tests are separate from test:unit.

Check Mermaid in a browser

Start pnpm --dir wiki dev --host 127.0.0.1, then run:

bash
node --test wiki/test/mermaid-browser.test.mjs

The check uses installed Chrome through the existing Playwright dependency. Set WIKI_TEST_URL to check a preview server. It verifies the expanded diagram’s dialog semantics, keyboard exit, and focus restoration. Also inspect zoom, pan, language, theme, touch controls, and ordinary page scrolling.

Before committing

Run affected package tests/builds and pnpm test:unit. Report commands actually run, service prerequisites that blocked checks, and any warnings. A skipped integration check cannot establish server compatibility.

Released under the Apache License 2.0.