Skip to content

Commit 700464e

Browse files
Move env closer Playwright configuration
Ensures Playwright itself has the configuration needed for the Inspector. Also allows future env without additional clutter in `package.json`.
1 parent 2feac76 commit 700464e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export default defineConfig({
1010
command: "npm run dev",
1111
url: "http://localhost:6274",
1212
reuseExistingServer: !process.env.CI,
13+
env: {
14+
MCP_AUTO_OPEN_ENABLED: "false",
15+
},
1316
},
1417

1518
testDir: "./e2e",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"start-client": "cd client && npm run preview",
3838
"test": "npm run prettier-check && cd client && npm test",
3939
"test-cli": "cd cli && npm run test",
40-
"test:e2e": "MCP_AUTO_OPEN_ENABLED=false npm run test:e2e --workspace=client",
40+
"test:e2e": "npm run test:e2e --workspace=client",
4141
"prettier-fix": "prettier --write .",
4242
"prettier-check": "prettier --check .",
4343
"lint": "prettier --check . && cd client && npm run lint",

0 commit comments

Comments
 (0)