Commit Graph

11 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
moosme 51a579aa36 feat(repo): nx upgrade (#1002)
* feat(repo): nx upgrade

* fix: sidebar

* fix: node version

* fix: relax dependency versions

* fix: remove naming conventions

* fix: format

* fix: remove chromatic

---------

Co-authored-by: Merlin <merlin.moos@oldendorff.com>
2025-11-20 10:14:26 +01:00
Merlin Moos 4160d4a350 Merge remote-tracking branch 'origin/main' into component-template
# Conflicts:
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog-overlay.ts
#	libs/brain/alert-dialog/src/lib/brn-alert-dialog.ts
#	libs/brain/avatar/src/lib/brn-avatar.ts
#	libs/brain/dialog/src/lib/brn-dialog-overlay.ts
#	libs/brain/dialog/src/lib/brn-dialog.ts
#	libs/brain/popover/src/lib/brn-popover.ts
#	libs/brain/radio-group/src/lib/brn-radio.ts
#	libs/brain/select/src/lib/brn-select-value.ts
#	libs/brain/sheet/src/lib/brn-sheet-overlay.ts
#	libs/brain/sheet/src/lib/brn-sheet.ts
#	libs/brain/tooltip/src/lib/brn-tooltip-content.ts
#	libs/helm/accordion/src/lib/hlm-accordion-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-content.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-footer.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog-header.ts
#	libs/helm/alert-dialog/src/lib/hlm-alert-dialog.ts
#	libs/helm/avatar/src/lib/hlm-avatar.ts
#	libs/helm/carousel/src/lib/hlm-carousel-content.ts
#	libs/helm/carousel/src/lib/hlm-carousel-item.ts
#	libs/helm/carousel/src/lib/hlm-carousel-next.ts
#	libs/helm/carousel/src/lib/hlm-carousel-previous.ts
#	libs/helm/carousel/src/lib/hlm-carousel.ts
#	libs/helm/dialog/src/lib/hlm-dialog-content.ts
#	libs/helm/dialog/src/lib/hlm-dialog.ts
#	libs/helm/sheet/src/lib/hlm-sheet.ts
#	tools/eslint-rules/index.ts
2025-11-12 23:38:47 +01:00
Merlin Moos 4a700bf6f6 fix: naming 2025-11-12 23:19:53 +01:00
Merlin Moos fd3229abe6 fix: add order 2025-11-12 23:08:18 +01:00
Ashley Hunter 87715502c4 build: eslint rule for styles and encapsulation 2025-11-12 21:33:40 +00:00
Merlin 6d60dc9d7d feat: add lint rule template last 2025-11-12 15:05:31 +01:00
Merlin c6e6387739 refactor: align eslint rules 2025-09-29 15:59:20 +02:00
Merlin 9e34f79ded refactor: consistent type import 2025-09-29 14:42:31 +02:00
Ashley Hunter 5313d244ec build: rxjs 6 support (#525)
* build: rxjs 6 support lint rule

* build: rxjs 6 support

* build: rxjs 6 support
2024-12-11 16:00:32 +01:00
Ashley Hunter fa8785183e build: moving to pnpm, eslint and prettier (#483) 2024-11-20 22:19:10 -05:00