MovieMapper/package.json
Jarian 56351b277e test: add Vitest suite with 86% coverage threshold
- Add Vitest + jsdom test framework with V8 coverage
- 118 tests across 7 test files covering AppState, ProgressManager, EpisodeManager, FileListManager, fileUtils, main.js logic, renderer escapeHtml, preload module polyfill
- Fix async bug in extractFileDuration (await in non-async callback)
- CI enforces 85% coverage threshold on testable modules
- Exclude Electron IPC wrappers (FileManager, SearchManager, TagManager, ModalManager, UIManager) from coverage as they require Electron runtime
2026-07-06 04:54:40 +00:00

22 lines
497 B
JSON

{
"name": "MovieMapper",
"version": "1.0.0",
"description": "A desktop application for organizing and managing movie and TV show collections",
"main": "main.js",
"scripts": {
"start": "electron .",
"test": "vitest run --coverage"
},
"dependencies": {
"axios": "^1.13.5",
"dotenv": "^17.3.1",
"electron": "^40.4.1",
"fluent-ffmpeg": "^2.1.3"
},
"devDependencies": {
"@vitest/coverage-v8": "^3.2.6",
"jsdom": "^25.0.1",
"vitest": "^3.2.6"
}
}