Files
grimmory/frontend/vitest-base.config.ts
T
brios 5bd2e9ad3f fix(streaming): rewrite file streaming with NIO and HTTP caching (#512)
* fix(streaming): rewrite file streaming with NIO and HTTP caching

* fix(streaming): improve file transfer handling and enhance client disconnect detection

* fix(streaming): improve If-None-Match header evaluation for improved caching

* fix(streaming): improve chapter tracking and loading in audiobook player

* fix(streaming): remove unused imports in audiobook player component

* fix(streaming): improve chapter tracking and state management in audiobook player (again)

* fix: fix merge conflict errors and update code
2026-04-22 17:27:35 -04:00

31 lines
910 B
TypeScript

import {defineConfig} from 'vitest/config';
import angular from '@analogjs/vite-plugin-angular';
const shouldEnforceCoverageGate = process.env['COVERAGE_GATE'] === '1';
export default defineConfig({
plugins: [angular({tsconfig: 'tsconfig.spec.json'})],
test: {
globals: true,
environment: 'jsdom',
isolate: true,
reporters: [
['default', {summary: false}],
['junit', {outputFile: 'test-results/vitest-results.xml'}]
],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'json', 'json-summary', 'lcov'],
reportsDirectory: 'coverage/grimmory',
include: ['src/app/**/*.ts', 'src/main.ts'],
exclude: ['src/app/**/*.spec.ts', 'src/app/**/*.module.ts', 'src/**/*.d.ts'],
thresholds: shouldEnforceCoverageGate ? {
statements: 90,
branches: 90,
functions: 90,
lines: 90
} : undefined
}
}
});