Files
npm-audit-action/vitest.config.ts

15 lines
370 B
TypeScript
Raw Permalink Normal View History

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['__tests__/**/*.test.ts'],
coverage: {
include: ['src/**/*.ts'], // Only target the src directory
exclude: ['lib/**'], // Exclude the lib directory
reporter: ['text', 'json', 'html', 'lcov']
}
}
})