- Add vitest.config.ts for Angular 21 @angular/build:unit-test runner - Install @angular/platform-browser-dynamic for TestBed initialization - Regenerate API client from OpenAPI spec (npm run generate-api) - Fix spec: use includes() for URL matching (generated API prepends basePath) - Fix spec: 'should not reload' test assertion (0 not 1) for no-reload behavior - All 107 frontend tests now pass (17 test files)
9 lines
141 B
TypeScript
9 lines
141 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
},
|
|
});
|