mirror of
https://github.com/ant-design/ant-design-cli.git
synced 2026-09-14 19:07:15 +08:00
a00ad2b474
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import { readFileSync } from 'node:fs';
|
|
|
|
const { version } = JSON.parse(readFileSync('package.json', 'utf-8'));
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
__CLI_VERSION__: JSON.stringify(version),
|
|
},
|
|
test: {
|
|
include: ['src/**/*.test.ts', 'scripts/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/**'],
|
|
reporter: ['text', 'clover', 'json'],
|
|
},
|
|
},
|
|
});
|