mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
1b743f8019
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.
74 lines
1.2 KiB
Plaintext
74 lines
1.2 KiB
Plaintext
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
|
|
# compiled output
|
|
dist
|
|
tmp
|
|
/out-tsc
|
|
.vercel
|
|
|
|
# dependencies
|
|
node_modules
|
|
|
|
# IDEs and editors
|
|
/.idea
|
|
.project
|
|
.classpath
|
|
.c9/
|
|
*.launch
|
|
.settings/
|
|
*.sublime-workspace
|
|
|
|
# IDE - VSCode
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/tasks.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
|
|
# misc
|
|
/.sass-cache
|
|
/connect.lock
|
|
/coverage
|
|
/libpeerconnection.log
|
|
npm-debug.log
|
|
yarn-error.log
|
|
testem.log
|
|
/typings
|
|
|
|
# System Files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
.angular
|
|
|
|
#env
|
|
.env
|
|
|
|
#
|
|
/stats.html
|
|
build-storybook.log
|
|
|
|
.nx/cache
|
|
.nx/workspace-data
|
|
|
|
|
|
vite.config.*.timestamp*
|
|
|
|
vitest.config.*.timestamp*
|
|
### generated docs file
|
|
apps/app/src/public/data/ui-api.json
|
|
apps/app/src/public/data/primitives-snippets.json
|
|
apps/app/src/public/data/manual-install-snippets.json
|
|
apps/app/src/public/data/stackblitz-meta.json
|
|
apps/app/src/public/data/stackblitz-project.json
|
|
apps/app/src/public/data/stackblitz-example-files.json
|
|
|
|
.cursor/rules/nx-rules.mdc
|
|
.github/instructions/nx.instructions.md
|
|
|
|
.claude/worktrees
|
|
.nx/polygraph
|
|
.nx/self-healing
|
|
# Vitest browser-mode failure screenshots (debug artifacts, written on test failure)
|
|
**/__screenshots__/
|