Storybook and integration testing
The repository uses several levels of checks to protect the component ecosystem and its generated integrations. Focused component checks validate accessible state and browser behavior; Storybook gives each UI component a shared, interactive view; Cypress checks those views in a real browser; the CLI smoke suite checks that generated components work in real Angular and Nx workspaces; and the tRPC application suite checks a running full-stack application.
Component contract checks
Focused component checks protect the contracts that higher-level Storybook and application checks depend on. They use user actions, accessible roles, form state, and visible DOM state to verify that controls expose the right behavior without relying on private component state. See Brain primitives for the broader role of these low-level components.
Control contracts
Checkbox and switch checks cover mouse and keyboard changes, focus visibility, disabled behavior, labels, required and invalid form state, and accessibility. These checks keep the semantic control state on the user-facing element while also checking the styling state exposed by its wrapper.
References: libs/…/brn-checkbox.spec.ts• L34-216 libs/…/brn-checkbox.spec.ts• L272-408 libs/…/brn-switch.spec.ts• L35-219 libs/…/brn-switch.spec.ts• L222-373
Avatar contracts
Avatar checks protect the image and fallback states shared by the unstyled and styled avatar surfaces. They verify that missing, loading, loaded, and failed images expose the right visible content, and that removing an image returns the avatar to its fallback state. The styled checks also protect size markers and class merging so application classes remain usable.
References: libs/…/brn-avatar.spec.ts• L91-217 libs/…/brn-avatar-fallback.spec.ts• L19-31 libs/…/brn-avatar-image.spec.ts• L33-81 libs/…/hlm-avatar.spec.ts• L41-89 libs/…/hlm-avatar-fallback.spec.ts• L20-52 libs/…/hlm-avatar-image.spec.ts• L20-48
Input OTP contracts
Input OTP checks protect the split between one real input value and its visible slots. They cover typing, paste, length limits, masking, character filtering, focus and caret state, disabled behavior, configuration changes, and reactive-form updates. The Helm checks add the styled grouping and separator surface while keeping the same value contract.
References: libs/…/brn-input-otp.spec.ts• L107-221 libs/…/brn-input-otp.spec.ts• L224-366 libs/…/brn-input-otp.spec.ts• L369-570 libs/…/hlm-input-otp.spec.ts• L35-150
Overlay contracts
Overlay checks protect the link between an overlay and the containers that can move its anchor. They cover nested and shadow DOM scroll containers, reposition, close, and block behavior, cleanup after the overlay closes, and the optional aria-modal contract. This keeps overlay behavior stable before it is exercised by Storybook browser checks.
References: libs/…/brn-overlay-scroll-containers.spec.ts• L3-63 libs/…/brn-overlay.service.spec.ts• L92-187
Dialog contracts
Dialog checks protect the user-facing close rules for one dialog and for a stack of dialogs. A backdrop click closes the open dialog that owns it, while a click on the backdrop of a stacked dialog closes only the top dialog. This keeps lower dialogs available until the user closes them in order.
References: libs/…/brn-dialog.service.spec.ts• L24-46
Layered surface contracts
Styled overlays build on the same ownership rules as the brain primitives. Alert dialogs, popovers, hover cards, drawers, and sheets must close only their own nested content, while dialogs must keep their accessible description, close label, and viewport-sized content contract. Direction inputs must also apply to the active drawer or sheet rather than to an enclosing surface.
References: libs/…/hlm-alert-dialog-nested.spec.ts• L32-70 libs/…/hlm-alert-dialog-content.spec.ts• L21-35 libs/…/hlm-dialog-content.spec.ts• L40-75 libs/…/hlm-drawer.spec.ts• L54-147 libs/…/hlm-hover-card-nested.spec.ts• L34-59 libs/…/hlm-popover-nested.spec.ts• L37-75 libs/…/hlm-sheet.spec.ts• L53-125
Tabs contracts
Tabs checks protect the link between triggers, panels, focus, and active selection as the tab set changes. They cover registration and removal, lazy panel creation, keyboard movement, dynamic trigger changes, automatic and manual activation, and the difference between the focused tab and the selected tab.
The Helm pagination check extends this contract to the styled tab list. Enter and Space must activate the focused tab in manual mode, including when no tab is selected yet. The list must also report the focused first tab when that action creates the first selection.
References: libs/…/brn-tabs.spec.ts• L93-230 libs/…/brn-tabs.spec.ts• L353-618 libs/…/hlm-tabs-paginated-list.spec.ts• L34-80
Tooltip option contracts
Tooltip checks protect configuration inheritance and placement across the component boundary. Parent and application options must keep the requested position and side offset, including zero and negative values, while the Helm tooltip keeps its styled overlay classes. A live change must move an open tooltip on the correct axis and preserve the gap in right-to-left layouts.
References: libs/…/brn-tooltip-position.spec.ts• L3-14 libs/…/hlm-tooltip-default-options.spec.ts• L35-58 libs/…/hlm-tooltip-side-offset.spec.ts• L78-140
Component showcase
The Storybook application is the shared visual and behavioral surface for the UI component set. It loads component stories from apps/…/main.ts and apps/ui-storybook/stories, then presents them with generated docs, static assets, and a light or dark theme. The root commands pnpm storybook and pnpm build-storybook start the local view or create its static form. See registry and theming and Helm components for the wider component and style system.
Story collections
Each story collection gives a component a small set of useful states. Controls expose supported inputs when they help a reader change a state, while the story template shows how the Angular component is used in a page. The collection covers simple primitives such as buttons and badges as well as compound controls such as calendars, menus, tabs, date pickers, and questionnaires.
Date-picker stories cover trigger and text-input use, form validation, constrained navigation, preselected month-end dates, and the difference between edit and display formats. The questionnaire stories cover required and optional items, single and multiple choice, free-form input, keyboard shortcuts, navigation, skipping, and submit actions. These states give browser checks stable pages for user-visible behavior and regression cases.
Popover stories also show the states that matter at the browser boundary. They cover normal opening and closing, content near a viewport edge, and dismissal when the page scrolls.
Storybook applies the same basic presentation rules to every story. Stories are sorted by name, docs are enabled by default, and the theme switch changes the light or dark class around the story. This makes the showcase useful both for visual review and as the known page shape for browser checks.
References: apps/…/main.ts• L3-14 apps/…/preview.ts• L1-25 apps/…/button.stories.ts• L4-35 apps/…/calendar.stories.ts• L5-23 apps/…/date-picker.stories.ts• L7-157 apps/…/hlm-questionnaire.stories.ts• L32-170 apps/…/popover.stories.ts• L10-136
Storybook targets
The Storybook project has three related uses:
storybookserves the interactive application on port 4400.build-storybookcreates a static site underdist/storybook/ui-storybook.static-storybookserves that built site for checks that should use a production-like bundle.
The browser suite uses the first target during local runs and the static target in CI. This keeps the same stories under test while allowing CI to check the built Storybook output.
References: apps/…/project.json• L9-51 package.json• L8-10 package.json• L23-26
Browser component checks
The Storybook browser suite checks component behavior at the page boundary. Cypress opens a story iframe and checks rendered structure, user input, focus movement, keyboard commands, layout, and accessibility. It does not replace unit checks; it confirms that a component and its supporting browser behavior work together in a real browser.
Cypress story checks
The ui-storybook-e2e project is linked to the Storybook application and runs with Cypress. A test normally selects a story through /iframe.html?id=..., then uses accessible roles or component attributes to drive the story. This keeps the check close to what a user sees and avoids testing private component state.
The suite includes checks for both common and edge behavior. For example, button-group checks cover nested groups, activation, focus, responsive views, and accessibility. Tabs checks cover selected state, panel linkage, arrow-key movement, wrapping, and focus transfer. Popover checks cover pointer and keyboard opening, outside dismissal, focus return, viewport-edge positioning, and close-on-scroll. Date-picker checks cover calendar selection across single, multi, range, and month-year forms, plus text entry, caret position, commit on blur or Enter, clear actions, invalid input, accessibility, month-end clamping, and minimum-date navigation. The support setup adds Testing Library queries, axe accessibility checks, real browser events, and a pointer-capture shim for predictable synthetic pointer input.
References: apps/…/project.json• L1-20 apps/…/button-group.cy.ts• L33-71 apps/…/tabs--default.cy.ts• L21-85 apps/…/popover.cy.ts• L1-185 apps/…/date-picker.cy.ts• L19-342 apps/…/e2e.ts• L16-67
Browser check flow
The browser flow connects a story definition to a browser assertion and then to a CI result.
flowchart LR
S[Story definition] --> B[Storybook application]
B --> I[Story iframe]
I --> C[Cypress interaction]
C --> A[Behavior and accessibility assertions]
A --> R[Local or CI result]
The Cypress configuration gives the long browser run extra time and retries only in run mode. CI can therefore absorb a transient slow assertion without hiding local flakes, while the static Storybook target ensures that browser checks can cover the built site.
References: apps/…/cypress.config.cjs• L1-40 apps/…/project.json• L9-20
CLI integration checks
The CLI smoke suite validates the consumer path rather than only the generator code. It creates temporary Angular CLI and Nx workspaces, installs the locally published CLI as a consumer would, generates components, and builds the result. This catches failures in workspace setup, generated imports, package boundaries, style replacement, and build output that in-memory generator checks cannot show. See CLI and generators for the broader generation flow.
Focused CLI generator checks protect the rules that decide whether a migration is needed and how a consumer is rewritten. The collapsible healthcheck distinguishes deprecated consumer use from Helm and trace wrappers, while migration checks cover both NgModule and standalone consumers and keep trace files unchanged. The input OTP checks extend this coverage to the newer split between the Brain root and its input directive: the healthcheck reports incomplete or legacy usage, and the migration keeps input attributes and imports on the correct element across template and component shapes.
References: libs/…/brn-collapsible.spec.ts• L7-43 libs/…/generator.spec.ts• L20-157 libs/…/hlm-input-otp.spec.ts• L7-155 libs/…/generator.spec.ts• L19-380
Workspace matrix
The matrix in apps/…/matrix.ts represents supported workspace shapes. It varies the axes that can change generator behavior:
| Axis | Coverage |
|---|---|
| Workspace tool | Nx monorepo, standalone Nx, and Angular CLI |
| Nx output shape | Library or secondary entry point |
| Build mode | Buildable or non-buildable library |
| Component set | A small representative set or every supported primitive |
| Component style | The default style and each other supported style |
The normal cells use button, card, and calendar. Together they cover a simple primitive, a multi-part primitive, and a component with dependent primitives. The full cells compile every supported primitive. Style cells prove that the selected registry style reaches generated source instead of only proving that a generic theme exists.
References: apps/…/matrix.ts• L1-34 apps/…/matrix.ts• L37-110
Generated workspace flow
Each matrix cell runs the same consumer journey. The workspace is outside the repository and uses a local package registry so the test exercises the packaged CLI and its related packages.
flowchart TD
P[Prepare fresh workspace] --> I[Install local CLI and write config]
I --> G[Run init and UI generators]
G --> H[Run health check]
H --> T[Check selected style classes]
T --> U[Use generated components through public alias]
U --> B[Build application and generated libraries]
B --> O[Check emitted theme and component CSS]
The probe component is important because it makes the application consume generated entry points through @spartan-ng/helm/*. A build can then expose a missing export, selector, template, or path mapping even when a generated library appears valid in isolation. A failed cell remains in the temporary directory for inspection; a passing cell is removed.
References: apps/…/setup-matrix.spec.ts• L19-52 apps/…/workspace.ts• L123-199 apps/…/workspace.ts• L241-270 apps/…/workspace.ts• L413-468
Smoke-test execution
The project target is a Vitest test target, and pnpm smoke runs the complete matrix. CI fans cells out to separate runners so a slow full-component cell does not delay all other cells. A change gate avoids the expensive setup when no CLI-related area changed, while the in-runner affected check makes the final decision more precise.
The workflow has a separate drift guard. It compares the cells declared in matrix.ts with the static GitHub Actions matrix, then the cli-smoke result job combines both outcomes into one required status. A new matrix cell is therefore not silently left out of CI.
References: apps/…/project.json• L8-20 package.json• L13-15 .github/…/cli-smoke.yml• L28-55 .github/…/cli-smoke.yml• L86-137 apps/…/README.md• L49-78
tRPC application checks
The tRPC application suite checks the generated full-stack integration against a built and running application. The application defines an AppRouter, exposes it through /api/trpc, and creates a typed browser client for that same router. The suite uses Playwright from Vitest to drive the running app and wait for real tRPC responses. See tRPC integration for the broader integration model.
Typed application path
The tRPC path keeps the server router and browser client tied to one type contract. The server combines the note procedures into AppRouter; the Nitro route serves that router; and the browser client points to the route with the shared data transformer. The test therefore crosses the application boundary instead of calling a procedure in isolation.
sequenceDiagram
participant P as Playwright page
participant A as Angular application
participant E as /api/trpc endpoint
participant R as AppRouter
participant D as Notes store
P->>A: Open home page
A->>E: List or mutate notes
E->>R: Route typed procedure
R->>D: Read or change note data
D-->>R: Return result
R-->>E: Return tRPC response
E-->>A: Update rendered notes
A-->>P: Show page state
The current router exposes public note operations for create, list, and remove. The end-to-end scenario is intended to cover persistence across reloads and the application response to a failed delete followed by a successful delete after login state changes.
References: apps/…/index.ts• L1-8 apps/…/notes.ts• L6-28 apps/…/[trpc].ts• L1-8 apps/…/trpc-client.ts• L1-15 apps/…/trpc.ts• L1-13
Running application suite
The trpc-app-e2e target first builds the app, starts its Nitro server on port 4205, waits for /api/health, and then runs the Vitest suite. The test uses one browser for the suite and creates a fresh page for each test. NotesPage groups browser actions and waits for a successful tRPC response before it checks the rendered note list.
This suite is separate from the Cypress Storybook suite. Storybook checks component behavior without the full application server; the tRPC suite checks server rendering, browser integration, network calls, and data behavior together.
References: apps/…/project.json• L7-23 apps/…/vite.config.ts• L1-20 apps/…/app.spec.ts• L1-29 apps/…/notes.po.ts• L3-39
Change checklist
When these files or sections are changed, remember to consider these:
- Keep control roles, form validation state, focus state, and wrapper state aligned. Higher-level checks depend on the accessible element exposing the real state.
- Keep avatar image status, fallback visibility, and dynamic image removal aligned between Brain behavior and Helm styling.
- Keep the Input OTP root, input directive, slot view, and reactive-form value aligned. Migration rules must preserve that split.
- Preserve overlay scroll strategy behavior and teardown. A closed overlay must not continue to react to its old scroll containers.
- Preserve dialog stack order when changing backdrop or outside-click behavior. A backdrop action must not close a lower dialog through the top dialog.
- Keep nested styled surfaces attached to their own state and direction. Closing or changing a child must not change its parent.
- Keep tab focus, selection, activation mode, and dynamic trigger order aligned. Keyboard navigation must use the current trigger set rather than the set that existed at startup.
- Keep the collapsible healthcheck exemption for Helm and trace wrappers. A broad import match can report valid internal wrappers as deprecated consumer use.
- Keep collapsible migration changes aligned for NgModule and standalone consumers, while leaving trace files unchanged.
- Keep Input OTP healthcheck and migration rules aligned for legacy Helm usage, missing input directives, unsupported container styles, and import updates.
- Add a matching Cypress story URL when a story id or story name changes. Browser checks address stories by id rather than by component source path.
- Keep
ui-storybook-e2eon the same Storybook target as the environment being checked. Local and CI targets intentionally use different serving modes. - Keep date-picker story ids aligned with the Cypress URLs for trigger, input, range, multi, month-year, and preselected constraint variants. A story can still render in Storybook while its browser check opens a different story.
- Keep date-picker input behavior aligned with its edit format, display format, parser, and model marker. Enter followed by blur must keep a valid value, while invalid text must not set the model.
- Keep date-picker month navigation aligned with its date limits. A month dropdown must show the requested month while focus moves to the first allowed date when the prior day is outside the minimum.
- Keep tooltip option inheritance aligned with the styled overlay output. A provider change must not remove the Helm classes from the tooltip, and side offsets must stay on the requested placement axis.
- Add a matrix cell to both apps/…/matrix.ts and .github/…/cli-smoke.yml. The drift guard protects this contract, but it cannot infer the intended coverage for a new axis.
- Keep style cells aligned with the supported style list in the registry. A new style needs a consumer cell that proves its class replacement rather than only its theme variables.
- Preserve the generated public alias used by the CLI probe. Changes to entry points, exports, or workspace path rules can pass isolated library builds but fail consumer compilation.
- Keep the tRPC endpoint,
AppRoutertype, browser client URL, and e2e server port aligned. A mismatch can look like a page or data failure while the real break is at the application boundary. - Revisit the tRPC scenario when auth or note rules change. Its current assertions describe a login-dependent delete flow while the shown router procedures are public.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A control exposes required or invalid state on its host instead of its user-facing role element | Form and accessibility tools read the wrong state | Checkbox and switch contract checks inspect the semantic element and run axe checks |
| Avatar image status or image removal does not update the fallback | A stale image or fallback remains visible after a load, error, or input change | Brain and Helm avatar checks cover missing, loading, loaded, failed, optimized, and removed images |
| Input OTP filters or truncates the real value differently from its slots | Users see one code while forms receive another | Brain and Helm checks cover typing, paste, length, pattern, masking, and reactive forms |
| Overlay scroll-container discovery or close cleanup changes | An overlay can lose its anchor, close too late, or keep reacting after close | Scroll-container and overlay-service checks cover nested, shadow, CDK, reposition, close, block, and teardown behavior |
| A stacked-dialog backdrop action closes more than the top dialog | A lower dialog disappears before the user closes it | Dialog service checks open two dialogs and inspect both states after the upper backdrop click |
| A nested styled surface uses its parent's close or direction state | A child action closes or positions the wrong surface | Alert dialog, popover, hover-card, drawer, and sheet checks exercise nested content and child placement |
| A tab trigger changes after initialization but keyboard state stays stale | Focus skips new tabs, visits removed tabs, or follows the old order | Brain and Helm tab checks change trigger sets and verify focus and activation |
| Manual tab activation prevents native Enter or Space behavior | The focused tab does not become selected | Helm paginated-list checks drive both keys in manual mode |
| Tooltip options cross a provider boundary without preserving Helm classes | Position is correct but the styled tooltip output is lost | Default-option checks cover parent and application providers plus rendered classes |
| A tooltip offset is applied on the wrong axis or ignores RTL placement | The tooltip gap appears beside the wrong edge | Brain position checks and Helm browser-like checks cover each side, live changes, zero values, defaults, and RTL |
| A story id changes without its Cypress URL changing | The browser test opens the wrong story or fails before behavior checks | Story files and apps/ui-storybook-e2e/src/integration use matching story ids |
| Date-picker commit or parse behavior changes after Enter or blur | A valid date can disappear, or invalid text can incorrectly change the picker model | Date-picker checks cover edit and display values, model state, invalid text, clear actions, and Enter-then-blur behavior |
| Date-picker month constraints do not update focus with the selected month | The dropdown names one month while the calendar remains on another or focuses an invalid day | Preselected month-end and minimum-date browser checks verify the visible month, day count, and focused date |
| Popover positioning or scroll handling changes without the edge stories and checks | Content can be squeezed at the viewport edge or remain fixed after its trigger moves | popover--near-viewport-edge checks content bounds and trigger tracking; popover--close-on-scroll checks dismissal after scroll |
| Storybook build output differs from the served development app | Local checks pass while CI checks fail on the static site | ui-storybook-e2e uses static-storybook:ci in CI |
| A generator emits a wrong alias, export, or template | A generated workspace cannot consume the component through its supported package path | The CLI smoke probe imports generated entry points and builds the app |
| An input OTP healthcheck misses legacy or incomplete usage | A consumer keeps old markup or an unsupported input setting after migration | Healthcheck checks distinguish valid Brain usage, legacy Helm usage, and non-fixable container styles |
| Input OTP migration updates markup but not its owning imports | The generated Angular app fails to compile or the same input directive is added twice | Migration checks cover inline and external templates, standalone and NgModule owners, aliases, namespaces, and repeated runs |
| A collapsible healthcheck matches a Helm or trace wrapper as a deprecated consumer | Valid internal code is reported as needing migration | The healthcheck checks legacy consumers and explicitly preserves wrapper cases |
| A collapsible migration changes only one consumer shape or rewrites a trace file | NgModule or standalone applications remain on the old API, or internal trace code is damaged | Generator checks cover NgModule, standalone, and untouched trace inputs |
| A style placeholder remains or the wrong style is selected | Generated components have incomplete or incorrect Tailwind classes | The smoke suite checks for leftover placeholders and style-specific classes |
| A matrix cell exists only in source or only in the workflow | A supported workspace setup has no CI coverage | The drift guard compares matrix.ts with cli-smoke.yml |
The tRPC app is not built, does not start, or does not expose /api/health | The application e2e target cannot reach the test phase | start-server-and-test gates Vitest on the built server and health URL |
The tRPC test remains under describe.skip | The intended note flow is documented in code but produces no test result | Check the suite declaration before treating a green run as tRPC coverage |
Key files
| File | Why to read it |
|---|---|
| libs/…/brn-checkbox.spec.ts | Shows the checkbox accessibility, form-state, label, keyboard, and disabled contracts. |
| libs/…/brn-switch.spec.ts | Shows the switch accessibility, form-state, keyboard, size, and thumb-state contracts. |
| libs/…/brn-avatar.spec.ts | Shows the avatar image lifecycle and fallback behavior, including dynamic image removal. |
| libs/…/brn-input-otp.spec.ts | Shows the user-facing value, slot, mask, filter, focus, and form contracts for Input OTP. |
| libs/…/brn-overlay-scroll-containers.spec.ts | Shows which nested, shadow, and slotted containers can affect an overlay. |
| libs/…/brn-overlay.service.spec.ts | Shows overlay accessibility, reposition, close, block, and cleanup behavior during scroll. |
| libs/…/brn-dialog.service.spec.ts | Shows backdrop close behavior for single and stacked dialogs. |
| libs/…/brn-tooltip-position.spec.ts | Shows the placement-to-offset contract used by tooltip positioning. |
| libs/…/brn-tabs.spec.ts | Shows tab registration, lazy content, keyboard movement, and focus-selection synchronization. |
| libs/…/hlm-avatar.spec.ts | Shows how the styled avatar preserves Brain behavior while adding size and class contracts. |
| libs/…/hlm-input-otp.spec.ts | Shows styled Input OTP groups, masking, filtering, and reactive-form integration. |
| libs/…/hlm-alert-dialog-nested.spec.ts | Shows nested alert-dialog ownership and independent close state. |
| libs/…/hlm-dialog-content.spec.ts | Shows dialog description links, close labels, and viewport sizing. |
| libs/…/hlm-drawer.spec.ts | Shows drawer opening, closing, edge direction, and nested direction behavior. |
| libs/…/hlm-hover-card-nested.spec.ts | Shows independent close state for nested hover cards. |
| libs/…/hlm-popover-nested.spec.ts | Shows independent close state for nested popovers. |
| libs/…/hlm-sheet.spec.ts | Shows sheet close labels, edge placement, and nested sheet state. |
| libs/…/hlm-tooltip-side-offset.spec.ts | Shows tooltip defaults, overrides, live repositioning, zero offset, and RTL behavior. |
| libs/…/hlm-tabs-paginated-list.spec.ts | Shows manual keyboard activation for the styled paginated tab list. |
| libs/…/hlm-tooltip-default-options.spec.ts | Shows parent and application tooltip options preserving Helm overlay classes. |
| apps/…/main.ts | Defines the Storybook story discovery, framework, docs, and assets. |
| apps/…/preview.ts | Defines shared themes, story order, and default docs behavior. |
| apps/…/project.json | Maps interactive, static-build, and static-server Storybook targets. |
| apps/…/button.stories.ts | Shows the normal pattern for an Angular component story with controls and variants. |
| apps/…/date-picker.stories.ts | Shows trigger, input, validation, month-end, and minimum-date date-picker states used by browser checks. |
| apps/…/hlm-questionnaire.stories.ts | Shows questionnaire choice, validation, navigation, and free-form states in the Storybook showcase. |
| apps/…/popover.stories.ts | Shows Storybook states for normal popover use, viewport-edge placement, and close-on-scroll behavior. |
| apps/…/project.json | Connects Cypress to the Storybook application in local and CI modes. |
| apps/…/date-picker.cy.ts | Shows browser checks for date selection, text entry, model state, accessibility, and constrained-navigation regressions. |
| apps/…/tabs--default.cy.ts | Shows browser checks for interaction, keyboard behavior, focus, and ARIA state. |
| apps/…/popover.cy.ts | Shows browser checks for popover dismissal, keyboard access, geometry, and scroll behavior. |
| libs/…/hlm-input-otp.spec.ts | Shows detection and repair boundaries for Brain, legacy Helm, and unsupported Input OTP usage. |
| libs/…/generator.spec.ts | Shows Input OTP migration across templates, imports, standalone components, and NgModules. |
| libs/…/brn-collapsible.spec.ts | Shows the boundary between deprecated consumer imports and valid Helm or trace wrappers. |
| libs/…/generator.spec.ts | Shows collapsible migration coverage for NgModule, standalone, and trace inputs. |
| apps/…/matrix.ts | Defines the supported consumer workspace and style combinations. |
| apps/…/setup-matrix.spec.ts | Defines the high-level contract every CLI smoke cell must satisfy. |
| apps/…/workspace.ts | Shows how a real workspace is prepared, generated, consumed, built, and checked. |
| .github/…/cli-smoke.yml | Shows CI fan-out, change gating, matrix drift protection, and result aggregation. |
| apps/…/project.json | Defines the build-server-test command for the running tRPC application. |
| apps/…/app.spec.ts | Defines the browser-level tRPC scenario and its current execution state. |
| apps/…/notes.po.ts | Encapsulates page actions and synchronization with tRPC responses. |
| apps/…/index.ts | Defines the application router type consumed by the client and endpoint. |
| apps/…/[trpc].ts | Connects the application router to the HTTP endpoint. |
| apps/…/trpc-client.ts | Connects the Angular application to the typed tRPC endpoint. |