Linden Crandall 5075f5c5d8
Some checks are pending
Automatisch Backend Tests / test (push) Waiting to run
Automatisch CI / linter (push) Waiting to run
Automatisch CI / start-backend-server (push) Waiting to run
Automatisch CI / start-backend-worker (push) Waiting to run
Automatisch CI / build-web (push) Waiting to run
Automatisch UI Tests / test (push) Waiting to run
commit upstream files
2025-02-06 04:14:18 +09:00

39 lines
1.0 KiB
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/controllers/**',
'**/src/helpers/authentication.test.js',
'**/src/helpers/axios-with-proxy.test.js',
'**/src/helpers/compute-parameters.test.js',
'**/src/helpers/user-ability.test.js',
'**/src/models/**',
'**/src/serializers/**',
],
exclude: [
'**/src/controllers/webhooks/**',
'**/src/controllers/paddle/**',
],
thresholds: {
autoUpdate: true,
statements: 99.4,
branches: 97.77,
functions: 99.16,
lines: 99.4,
},
},
},
});