Files
coder/site/e2e/playwright.config.ts
T
Kyle Carberry ccd061652b feat: Add built-in PostgreSQL for simple production setup (#2345)
* feat: Add built-in PostgreSQL for simple production setup

Fixes #2321.

* Use fork of embedded-postgres for cache path
2022-06-15 16:02:18 -05:00

28 lines
840 B
TypeScript

import { PlaywrightTestConfig } from "@playwright/test"
import * as path from "path"
const config: PlaywrightTestConfig = {
testDir: "tests",
globalSetup: require.resolve("./globalSetup"),
// Create junit report file for upload to DataDog
reporter: [["junit", { outputFile: "test-results/junit.xml" }]],
use: {
baseURL: "http://localhost:3000",
video: "retain-on-failure",
},
// `webServer` tells Playwright to launch a test server - more details here:
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
webServer: {
// Run the coder daemon directly.
command: `go run -tags embed ${path.join(__dirname, "../../cmd/coder/main.go")} server --in-memory`,
port: 3000,
timeout: 120 * 10000,
reuseExistingServer: false,
},
}
export default config