Priority
P1 — can proceed after the public TestKernel shape in #1482 is stable.
Problem
Generated frontend applications currently have build, preview, typecheck, and a Vite config smoke, but no test command, component-test environment, API mocking convention, or browser journey. This leaves every application to invent its own frontend testing architecture and means generated full-stack apps do not prove that Problems and generated RPC clients are handled correctly in the browser.
Desired outcome
Generate an opinionated but replaceable frontend testing baseline:
- Vitest Browser Mode for React component tests;
- Testing Library-compatible interaction helpers;
- MSW at frontend API boundaries;
- Playwright for full-stack user journeys;
- failure artifacts correlated with backend test evidence where possible.
Generated structure
apps/console-web/
src/**/*.component.spec.tsx
src/test/browser.ts
src/test/server.ts
vitest.config.ts
tests/journeys/
create-user.spec.ts
problem-rendering.spec.ts
playwright.config.ts
Acceptance criteria
Non-goals
- A Croco-owned browser automation engine.
- Visual regression hosting or a mandatory third-party SaaS.
- Testing every generated page.
Validation
Extend create-croco-app template contract tests and generated-app smoke to install, build, run component tests, and run one browser journey for the primary production/full-stack preset.
Priority
P1 — can proceed after the public TestKernel shape in #1482 is stable.
Problem
Generated frontend applications currently have build, preview, typecheck, and a Vite config smoke, but no
testcommand, component-test environment, API mocking convention, or browser journey. This leaves every application to invent its own frontend testing architecture and means generated full-stack apps do not prove that Problems and generated RPC clients are handled correctly in the browser.Desired outcome
Generate an opinionated but replaceable frontend testing baseline:
Generated structure
Acceptance criteria
test:component,test:journey, and an aggregatetest/test:cipath.@croco/testingcore APIs.Non-goals
Validation
Extend
create-croco-apptemplate contract tests and generated-app smoke to install, build, run component tests, and run one browser journey for the primary production/full-stack preset.