Skip to main content

Examples and starter fixtures

The scaffolder writes a minimal, passing example so you have something green on day one — see Quick Start. When you outgrow that and want a worked reference for a specific design system, the monorepo's own package-tests/ fixtures are the source to copy from. Each is a real, CI-green project: a rendered example component, its ScenePart, and the same suite driven under both a DOM runner and a browser. Lift the ScenePart and test logic straight out of one.

One reference fixture per stack​

Design systemFrameworkRunner(s)Reference fixture
HTML (framework-agnostic)React 19Jest (DOM) + Playwright (E2E)component-driver-html-test
Material UIReact 19Jest (DOM) + Playwright (E2E)component-driver-mui-v9-test
MUI XReact 19Jest (DOM) + Playwright (E2E)component-driver-mui-x-v9-test
Radix / shadcnReact 19Jest (DOM) + Playwright (E2E)component-driver-radix-test
AstryxReact 19Jest (DOM) + Playwright (E2E)component-driver-astryx-test
Fluent UI v9React 19Jest (DOM) + Playwright (E2E)component-driver-fluent-v9-test
HTMLVue 3Jest (DOM)vue-3-test
PrimeVueVue 3Jest (DOM) + Playwright (E2E)component-driver-primevue-test
Angular MaterialAngular 22Vitest (browser) + Playwright (E2E)component-driver-angular-material-v22-test
HTMLAngular 22Vitest (browser)angular-22-test
Any (in stories)Storybook 10Vitest (browser)storybook-test

Each design system usually ships a fixture per supported major (for example component-driver-mui-v6/v7/v9 and angular-material/angular v20/v21/v22); the table lists one representative each. Browse the full package-tests/ directory to find the major that matches your project.

How to read a fixture​

Every fixture follows the shared three-file test pattern, so copying one is mechanical:

  • *.suite.ts — the ScenePart (locators + drivers) and the framework-agnostic test logic. This is the part you adapt to your component.
  • *.dom.test.ts — the Jest (or Vitest) adapter that renders the example and runs the suite in a DOM.
  • *.e2e.test.ts — the Playwright adapter that runs the same suite in a real browser.

The suite is written once and executed by both adapters, so the reference shows you a single set of assertions that already passes in DOM and browser alike.

Once you have picked a stack from the table, Scaffold in CI covers driving the CLI non-interactively to generate the matching starting point.