
- auth clients are always shared, cannot be disabled - custom connections are enabled by default, can be disabled - any existing connections can be reconnected regardless of its AppConfig or AppAuthClient states
27 lines
667 B
JavaScript
27 lines
667 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
root: './',
|
|
environment: 'node',
|
|
setupFiles: ['./test/setup/global-hooks.js'],
|
|
globals: true,
|
|
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions'] : ['dot'],
|
|
coverage: {
|
|
reportOnFailure: true,
|
|
provider: 'v8',
|
|
reportsDirectory: './coverage',
|
|
reporter: ['text', 'lcov'],
|
|
all: true,
|
|
include: ['**/src/models/**', '**/src/controllers/**'],
|
|
thresholds: {
|
|
autoUpdate: true,
|
|
statements: 95.16,
|
|
branches: 94.66,
|
|
functions: 97.65,
|
|
lines: 95.16,
|
|
},
|
|
},
|
|
},
|
|
});
|