- 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)
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"name": "eeg-frontend",
|
|
"version": "0.0.0",
|
|
"scripts": {
|
|
"ng": "ng",
|
|
"start": "ng serve",
|
|
"build": "ng build",
|
|
"watch": "ng build --watch --configuration development",
|
|
"test": "ng test",
|
|
"generate-api": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o ./src/app/api"
|
|
},
|
|
"private": true,
|
|
"packageManager": "npm@11.15.0",
|
|
"dependencies": {
|
|
"@angular/cdk": "^21.2.12",
|
|
"@angular/common": "^21.2.0",
|
|
"@angular/compiler": "^21.2.0",
|
|
"@angular/core": "^21.2.0",
|
|
"@angular/forms": "^21.2.0",
|
|
"@angular/material": "^21.2.12",
|
|
"@angular/platform-browser": "^21.2.0",
|
|
"@angular/platform-browser-dynamic": "^20.0.7",
|
|
"@angular/router": "^21.2.0",
|
|
"@tailwindcss/postcss": "^4.3.0",
|
|
"echarts": "^6.1.0",
|
|
"ngx-echarts": "^18.0.0",
|
|
"rxjs": "~7.8.0",
|
|
"tslib": "^2.3.0",
|
|
"zone.js": "^0.16.2"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/build": "^21.2.12",
|
|
"@angular/cli": "^21.2.12",
|
|
"@angular/compiler-cli": "^21.2.0",
|
|
"@openapitools/openapi-generator-cli": "^2.34.0",
|
|
"autoprefixer": "^10.5.0",
|
|
"jsdom": "^28.0.0",
|
|
"postcss": "^8.5.15",
|
|
"prettier": "^3.8.1",
|
|
"tailwindcss": "^4.3.0",
|
|
"typescript": "~5.9.2",
|
|
"vitest": "^4.0.8"
|
|
}
|
|
}
|