vitest.config.mts 512 B

123456789101112131415161718192021
  1. import { defineConfig } from "vitest/config";
  2. import { woff2BrowserPlugin } from "./scripts/woff2/woff2-vite-plugins";
  3. export default defineConfig({
  4. // @ts-ignore
  5. plugins: [woff2BrowserPlugin()],
  6. test: {
  7. setupFiles: ["./setupTests.ts"],
  8. globals: true,
  9. environment: "jsdom",
  10. coverage: {
  11. reporter: ["text", "json-summary", "json", "html", "lcovonly"],
  12. thresholds: {
  13. lines: 70,
  14. branches: 70,
  15. functions: 68,
  16. statements: 70,
  17. },
  18. },
  19. },
  20. });