mirror of
https://github.com/kikootwo/ReadMeABook.git
synced 2026-06-02 12:20:09 +00:00
31bca0052f
Introduces 'series' and 'seriesPart' fields to the Audiobook model and database schema. Updates API routes, file organization, and path template utilities to support series metadata. Enhances chapter merging logic, improves notification backend testing, and expands test coverage for admin and API routes.
41 lines
912 B
TypeScript
41 lines
912 B
TypeScript
/**
|
|
* Component: Test Runner Configuration
|
|
* Documentation: documentation/README.md
|
|
*/
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
setupFiles: ['tests/setup.ts'],
|
|
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
|
|
clearMocks: true,
|
|
mockReset: true,
|
|
restoreMocks: true,
|
|
testTimeout: 20000,
|
|
hookTimeout: 20000,
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html', 'lcov'],
|
|
include: ['src/**/*.{ts,tsx}'],
|
|
exclude: [
|
|
'src/generated/**',
|
|
'src/**/*.d.ts',
|
|
'src/**/types/**',
|
|
'src/**/types.ts',
|
|
'src/**/index.ts',
|
|
],
|
|
},
|
|
},
|
|
});
|