Files
kmtnflower/package.json
T
kfj001 96e6742676 feat: initialize frontend unit test framework with Vitest
- Add vitest ^4.0.8, jsdom, @vitest/coverage-v8 to devDependencies
- Configure vitest.config.ts for jsdom environment with src/**/*.spec.ts pattern
- Simplify test-setup.ts (no TestBed needed for standalone unit tests)
- Add example spec file src/app/app.spec.ts (5 tests) covering App component logic
- Add npm scripts: test:unit, test:unit:watch, test:unit:coverage
- Verified: 5/5 frontend tests pass, 86/86 backend pytest tests still pass
2026-07-29 11:17:27 +00:00

45 lines
1.1 KiB
JSON

{
"name": "radio-station",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:unit": "vitest run",
"test:unit:watch": "vitest",
"test:unit:coverage": "vitest run --coverage"
},
"private": true,
"packageManager": "npm@11.11.0",
"dependencies": {
"@angular/common": "^21.2.0",
"@angular/compiler": "^21.2.0",
"@angular/core": "^21.2.0",
"@angular/forms": "^21.2.0",
"@angular/platform-browser": "^21.2.0",
"@angular/router": "^21.2.0",
"@types/leaflet": "^1.9.17",
"@angular/cdk": "^21.2.0",
"chart.js": "^4.4.0",
"leaflet": "^1.9.4",
"ng2-charts": "^10.0.0",
"ngx-leaflet": "^0.0.16",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "^0.16.2"
},
"devDependencies": {
"@angular/build": "^21.2.14",
"@angular/cli": "^21.2.14",
"@angular/compiler-cli": "^21.2.0",
"@vitest/coverage-v8": "^4.0.8",
"jsdom": "^26.1.0",
"prettier": "^3.8.1",
"typescript": "~5.9.2",
"vitest": "^4.0.8",
"@types/jsdom": "^21.1.7"
}
}