Commit Graph

7 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
Merlin 719201154c Merge remote-tracking branch 'origin/main' into polish-button
# Conflicts:
#	apps/app/src/app/pages/(components)/components/(button)/button--icon.example.ts
#	apps/app/src/app/pages/(components)/components/(button)/button--rounded.example.ts
#	apps/app/src/app/pages/(components)/components/(button)/button--size.example.ts
#	apps/app/src/app/pages/(components)/components/(button)/button--spinner.example.ts
#	apps/app/src/app/pages/(components)/components/(button)/button--with-icon.example.ts
#	apps/app/src/app/pages/(components)/components/(button)/button.page.ts
#	apps/app/src/app/pages/(components)/components/(button)/button.preview.ts
#	libs/cli/src/generators/ui/supported-ui-libraries.json
#	package.json
#	pnpm-lock.yaml
2026-03-12 17:50:57 +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
Merlin Moos dfc9dd45ea feat: add registry 2026-02-22 19:32:08 +01:00
Ben Snyder fbf92e3999 feat(nx): convert to eslint flat config (#265)
* feat(nx): convert to eslint flat config

* fix(nx): use .cjs extensions for flat config to work

---------

Co-authored-by: Robin Goetz <35136007+goetzrobin@users.noreply.github.com>
2024-04-23 20:00:13 +02:00
robingotz 078e067772 chore: upgrade workspace to newest nx & testing dependencies to allow signal input testing 2024-03-06 17:49:30 +01:00
robingotz 4885519fa9 feat: turn nx plugin into cli
We add functionality that allows us to use the Nx plugin in a wrapper
that makes it compatible with the Angular CLI.
This includes a rename of the package from @spartan-ng/nx to
@spartan-ng/cli.
2023-11-28 14:08:51 -05:00