test ✅: add comprehensive test suite for CSS ordering rules
Add tests for all three CSS property ordering rules:
alphabetical-order,
concentric-order,
custom-order,
Tests cover all implemented vanilla-extract APIs, fontFace, globalFontFace, globalKeyframes, globalStyle, keyframes, style, and styleVariants.. Each test verifies both valid and invalid cases, along with proper auto-fixing functionality.
2025-03-09 18:12:00 +02:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
test: {
|
|
|
|
|
coverage: {
|
|
|
|
|
provider: 'v8',
|
2025-03-10 15:34:40 +02:00
|
|
|
reporter: ['html', 'json', 'lcov', 'text'],
|
test ✅: add comprehensive test suite for CSS ordering rules
Add tests for all three CSS property ordering rules:
alphabetical-order,
concentric-order,
custom-order,
Tests cover all implemented vanilla-extract APIs, fontFace, globalFontFace, globalKeyframes, globalStyle, keyframes, style, and styleVariants.. Each test verifies both valid and invalid cases, along with proper auto-fixing functionality.
2025-03-09 18:12:00 +02:00
|
|
|
reportsDirectory: './coverage/vitest-reports',
|
2025-03-10 09:28:51 +02:00
|
|
|
include: ['src/css-rules/**/*.ts', 'src/shared-utils/**/*.ts'],
|
|
|
|
|
exclude: ['src/**/*.css.ts', 'src/**/*index.ts', 'src/**/*types.ts'],
|
test ✅: add comprehensive test suite for CSS ordering rules
Add tests for all three CSS property ordering rules:
alphabetical-order,
concentric-order,
custom-order,
Tests cover all implemented vanilla-extract APIs, fontFace, globalFontFace, globalKeyframes, globalStyle, keyframes, style, and styleVariants.. Each test verifies both valid and invalid cases, along with proper auto-fixing functionality.
2025-03-09 18:12:00 +02:00
|
|
|
},
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
});
|