Commit Graph

9 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
Sammy Mohamed 970a0da8d9 docs: autodocs improvements (#716)
- future proof glob pattern for style guide changes
- identify required inputs
- moved models to input/output
- simplified ui docs test with snapshot
- ensure snapshot test considers only critical properties of api metadata
2025-08-12 13:37:43 +02: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
Chau Tran 3b6fd01ccb chore: formatting with new prettier configf (#54) 2023-11-17 13:30:50 -05:00
robingotz 6d2fb0201b feat: upgrade to angular v17 2023-11-15 15:42:24 -05:00
robingotz 06b3d3853e feat: create tool that turns hlm libs into nx generators for @spartan-ng/nx
in the spirit of shadcn ui we want people to own their styles.
this is a first step that allows us to easily turn our internal
hlm directives, components, etc. into templates for nx an nx
generator. Which means that inside an nx workspace you will be
able to simply copy our styles into your own library.
2023-07-27 11:49:44 -04:00
robingotz d93e6527ea build: set up verdaccio and test with alpha version
move from nx to tools so we can use nx publicly.
using 10 because I used 1 already on npm and it complains.
learning a lot as I go here.
2023-07-24 10:21:13 -04:00