mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 19:01:35 +01:00
23 lines
545 B
TypeScript
23 lines
545 B
TypeScript
import { type PlaywrightTestConfig, devices } from "@playwright/test";
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
webServer: {
|
|
command: "npm run build && npm run preview",
|
|
url: "http://localhost:4173"
|
|
},
|
|
use: {
|
|
baseURL: "http://localhost:4173"
|
|
},
|
|
testDir: "tests",
|
|
testMatch: /(.+\.)?(test|spec)\.ts/,
|
|
// Firefox and Webkit are not packaged yet, see https://github.com/NixOS/nixpkgs/issues/288826
|
|
projects: [
|
|
{
|
|
name: "Chromium",
|
|
use: { ...devices["Desktop Chrome"] }
|
|
}
|
|
]
|
|
};
|
|
|
|
export default config;
|