Initial Upload
Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
This commit is contained in:
38
apps/server/vitest.routes.config.ts
Normal file
38
apps/server/vitest.routes.config.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Routes Tests Configuration
|
||||
*
|
||||
* API endpoint tests with mocked database:
|
||||
* - routes/__tests__/* (rules, violations)
|
||||
* - routes/auth/__tests__/* (auth utilities)
|
||||
* - routes/stats/__tests__/* (stats utilities)
|
||||
*
|
||||
* Run: pnpm test:routes
|
||||
*/
|
||||
|
||||
import { defineConfig, mergeConfig } from 'vitest/config';
|
||||
import { sharedConfig } from './vitest.shared.js';
|
||||
|
||||
export default mergeConfig(
|
||||
sharedConfig,
|
||||
defineConfig({
|
||||
test: {
|
||||
name: 'routes',
|
||||
include: [
|
||||
'src/routes/__tests__/*.test.ts',
|
||||
'src/routes/auth/__tests__/*.test.ts',
|
||||
'src/routes/stats/__tests__/*.test.ts',
|
||||
],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'json-summary'],
|
||||
reportsDirectory: './coverage/routes',
|
||||
include: ['src/routes/**/*.ts'],
|
||||
exclude: [
|
||||
'**/*.test.ts',
|
||||
'**/*.security.test.ts',
|
||||
'**/test/**',
|
||||
],
|
||||
},
|
||||
},
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user