eslint-plugin-vanilla-extract/vitest.config.mjs
Ante Budimir 58249ba281 ci 👷: add GitHub Actions workflow for linting and testing
Set up comprehensive CI pipeline with three jobs:

- Lint: Runs ESLint and type checking
- Test: Executes test suite with Coveralls integration
- Build: Verifies package builds correctly

The workflow uses pnpm and caches dependencies for faster runs.
2025-03-10 15:34:40 +02:00

21 lines
672 B
JavaScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
coverage: {
provider: 'v8',
reporter: ['html', 'json', 'lcov', 'text'],
reportsDirectory: './coverage/vitest-reports',
include: ['src/css-rules/**/*.ts', 'src/shared-utils/**/*.ts'],
exclude: ['src/**/*.css.ts', 'src/**/*index.ts', 'src/**/*types.ts'],
},
reporters: [
'default',
['json', { outputFile: './coverage/vitest-results/vitest-results.json' }],
['junit', { outputFile: './coverage/vitest-results/vitest-results.xml' }],
],
environment: 'node',
include: ['src/**/*.test.ts'],
globals: true,
},
});