mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-29 22:27:25 +02:00
♻️ Switch to app router (#922)
This commit is contained in:
parent
41f85279bb
commit
95feb9f01a
181 changed files with 2507 additions and 2494 deletions
|
@ -4,7 +4,7 @@ import path from "path";
|
|||
|
||||
const ci = process.env.CI === "true";
|
||||
|
||||
dotenv.config({ path: path.resolve(__dirname, "../../", ".env.test") });
|
||||
dotenv.config({ path: path.resolve(__dirname, ".env.test") });
|
||||
|
||||
// Use process.env.PORT by default and fallback to port 3000
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
@ -24,13 +24,9 @@ const config: PlaywrightTestConfig = {
|
|||
trace: "retain-on-failure",
|
||||
},
|
||||
webServer: {
|
||||
command: `NODE_ENV=test yarn dev --port ${PORT}`,
|
||||
command: `NODE_ENV=test yarn start --port ${PORT}`,
|
||||
url: baseURL,
|
||||
timeout: 120 * 1000,
|
||||
reuseExistingServer: !ci,
|
||||
},
|
||||
expect: {
|
||||
timeout: 10000, // 10 seconds
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
reporter: [
|
||||
[ci ? "github" : "list"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue