Skip to content

Test Config

vp test reads Vitest settings from the test block in vite.config.ts. See Vitest's configuration for details.

Example

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

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