mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-28 13:42:41 +03:00
a1e6d400b2
* feat: update translations * fix: update createBrain tests * test: add crawl e2e test
29 lines
678 B
TypeScript
29 lines
678 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
import dotenv from "dotenv";
|
|
dotenv.config();
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !(process.env.CI == null),
|
|
retries: process.env.CI != null ? 2 : 0,
|
|
workers: 1,
|
|
reporter: "html",
|
|
testMatch: "e2e/index.ts",
|
|
use: {
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
webServer: {
|
|
command:
|
|
process.env.NODE_ENV === "production"
|
|
? "yarn run build && yarn run start -p 3003"
|
|
: "yarn run dev -p 3003",
|
|
url: process.env.NEXT_PUBLIC_E2E_URL,
|
|
},
|
|
});
|