mirror of
https://github.com/antebudimir/eslint-plugin-vanilla-extract.git
synced 2025-12-31 08:53:33 +00:00
Add comprehensive tests for shared utility modules to improve code coverage: - Test property name extraction edge cases - Test CSS property priority map with invalid groups - Test order strategy visitor creator edge cases - Test font face property order enforcer early returns - Test style node processor with arrays and null values These tests ensure all code paths in shared utilities are properly exercised, including error handling and edge cases.
21 lines
664 B
JavaScript
21 lines
664 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['html', 'json', '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,
|
|
},
|
|
});
|