Commit Graph

3 Commits

Author SHA1 Message Date
Ashley Hunter 1b743f8019 test: migrate from jest to vitest with browser testing for brain/helm
Replace Jest with Vitest across the workspace. The brain and helm Angular suites
now run in a real browser (Playwright/Chromium via Vitest browser mode) so they
exercise real layout, focus, pointer events and computed styles that jsdom could
not. The cli, tools, mcp, registry and cli-smoke suites run on Vitest's node
environment.

- Add per-project vite configs and switch test targets to @nx/vitest:test
- Convert jest APIs to vi.* and jest module mocks to vi.mock with importOriginal
- Replace jest-axe with a browser-native axe-core helper and toHaveNoViolations
- Regenerate snapshots in vitest format (content unchanged, format-only)
- Remove all jest packages, configs, the preset and the @nx/jest target default
- Install Playwright Chromium in the CI unit job for the browser suites

Also fixes a brain avatar test that asserted inside a fire-and-forget setTimeout,
which passed vacuously under jsdom and only surfaced once a real browser loaded
the image.
2026-06-13 15:16:45 +01:00
Marc Stammerjohann dc9c2d77eb chore: update nx and angular 20.3 (#1232)
* chore: update nx and angular 20.3

# Conflicts:
#	pnpm-lock.yaml

* chore: fix lint issues

* chore: update tailwind and prettier
2026-03-04 10:03:14 +01:00
Ashley Hunter df8a0b28be feat: secondary entrypoint setup (#496)
* build: creating secondary entrypoint

* build: adding migration generators

* build: skipping install when running internally

* fix: project name bug

* fix: file movement

* fix: import renaming

* fix: migration generator

* build: adding peer dependency migration

* fix: migration

* fix: migration

* feat: migrating checkbox

* fix: version range

* fix: moving import map to ts file

* fix: correcting documentation

* fix: esm

* fix: esm

* fix: linting

* fix: linting

* fix: linting

* fix: linting

* fix: build
2024-12-05 14:18:48 +01:00