docs: describe Vitest test setup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2764ea0c96
commit
def1897723
2 files changed
+4
-4
No files matched your search
@@ -3,7 +3,7 @@
|
||||
## Project Context
|
||||
|
||||
This is an Angular portfolio application using Angular 21, TypeScript, SCSS,
|
||||
Karma/Jasmine tests, and static hosting for production output. Production
|
||||
Vitest tests, and static hosting for production output. Production
|
||||
application code lives in `src/app`; the client entry point lives in
|
||||
`src/main.ts`.
|
||||
|
||||
@@ -32,7 +32,7 @@ maintain generated or copied output in `public/assets/optimized` or `dist`.
|
||||
- `npm run build`: generates assets, builds the production app, and copies
|
||||
static root files. Run this only when explicitly requested.
|
||||
- `npm start`: serves the built static app through `scripts/static-server.mjs`.
|
||||
- `npm test`: generates assets and starts Angular tests with Karma/Jasmine.
|
||||
- `npm test`: generates assets and starts Angular tests with Vitest.
|
||||
- `npm run check`: runs linting, format checks, version checks, and source text
|
||||
checks. Always use this as the final validation.
|
||||
- `npm run fix`: places version data, runs ESLint fixes, fixes source text, and
|
||||
|
||||
@@ -9,7 +9,7 @@ Visit the live website at [fraujulian.xyz](https://fraujulian.xyz/).
|
||||
- Angular 22
|
||||
- TypeScript
|
||||
- SCSS
|
||||
- Karma and Jasmine for tests
|
||||
- Vitest for tests
|
||||
|
||||
## Features
|
||||
|
||||
@@ -59,7 +59,7 @@ built site at `http://localhost:3000`.
|
||||
npm run test
|
||||
```
|
||||
|
||||
This generates assets and runs the Karma/Jasmine tests in ChromeHeadless.
|
||||
This generates assets and runs the Vitest tests in jsdom.
|
||||
|
||||
## Docs
|
||||
|
||||
|
||||
Reference in new issue
Block a user