mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
28 lines
840 B
TypeScript
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
|