theme-extraction.config.ts 760 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from "@playwright/test"
  2. import { TestOptions } from "../tests/playwright-base-test"
  3. import * as path from "path"
  4. import { fileURLToPath } from "url"
  5. // ES module equivalent of __dirname
  6. const __filename = fileURLToPath(import.meta.url)
  7. const __dirname = path.dirname(__filename)
  8. export default defineConfig<void, TestOptions>({
  9. timeout: 120_000,
  10. expect: { timeout: 30_000 },
  11. reporter: "line",
  12. workers: 1,
  13. retries: 0,
  14. globalSetup: "../playwright.globalSetup",
  15. testDir: ".",
  16. testMatch: "theme-extraction-script.test.ts", // Only run this specific test
  17. outputDir: "../test-results",
  18. projects: [{ name: "VSCode stable", use: { vscodeVersion: "stable" } }],
  19. use: {
  20. trace: "on-first-retry",
  21. video: "retry-with-video",
  22. },
  23. })