vitest.config.mts 505 B

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