Skip to content

测试配置

vp testvite.config.ts 中的 test 块读取 Vitest 设置。详见 Vitest 的配置

示例

ts
import { defineConfig } from 'vite-plus';

export default defineConfig({
  test: {
    include: ['src/**/*.test.ts'],
    coverage: {
      reporter: ['text', 'html'],
    },
  },
});