import { puppeteerLauncher } from "@web/test-runner-puppeteer"; export default { nodeResolve: true, files: ["test/**/*.test.js"], coverage: true, browsers: [ puppeteerLauncher({ launchOptions: { // Use the new headless mode explicitly headless: "new", args: [ "--no-sandbox", "--disable-setuid-sandbox", // Critical flags for WebGL in headless: "--enable-gpu", // Required to trigger the graphics stack "--ignore-gpu-blocklist", // Force access to the "GPU" (SwiftShader) "--use-gl=swiftshader", // The software renderer "--no-first-run", "--disable-extensions", ], }, }), ], testFramework: { config: { ui: "bdd", // WebGL initialization in software mode can be slow, so we bump the timeout timeout: "10000", }, }, };