vitest.config.mjs 632 B

123456789101112131415161718192021
  1. import path from "node:path";
  2. import { fileURLToPath } from "node:url";
  3. import { defineConfig } from "vitest/config";
  4. const __dirname = path.dirname(fileURLToPath(import.meta.url));
  5. export default defineConfig({
  6. resolve: {
  7. alias: {
  8. "@": path.resolve(__dirname, "src/main/js"),
  9. },
  10. },
  11. test: {
  12. environment: "jsdom",
  13. include: ["src/test/js/**/*.test.js"],
  14. // published by the Jenkinsfile; kept out of */target/surefire-reports so
  15. // that Launchable does not try to parse it as Maven output
  16. reporters: ["default", "junit"],
  17. outputFile: { junit: "target/vitest-reports/junit.xml" },
  18. },
  19. });