tell to kill relay when testing locally

This commit is contained in:
Tommy D. Rossi
2026-01-25 14:34:19 +01:00
parent 316a10e9c9
commit e96c401078
3 changed files with 25 additions and 32 deletions
+10 -4
View File
@@ -50,10 +50,16 @@ make sure you have tsx installed globally: `pnpm i -g tsx`
to test CLI changes without publishing:
```bash
tsx playwriter/src/cli.ts -e "await page.goto('https://example.com')"
tsx playwriter/src/cli.ts -e "console.log(await accessibilitySnapshot({ page }))"
tsx playwriter/src/cli.ts session new
tsx playwriter/src/cli.ts -s 1 -e "await page.click('button')"
# mac/linux: kill any existing relay on 19988
lsof -ti :19988 | xargs kill
# windows (powershell): kill any existing relay on 19988
Get-NetTCPConnection -LocalPort 19988 | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force }
tsx playwriter/src/cli.ts -s 1 -e "await page.goto('https://example.com')"
tsx playwriter/src/cli.ts -s 1 -e "console.log(await accessibilitySnapshot({ page }))"
tsx playwriter/src/cli.ts session new
tsx playwriter/src/cli.ts -s 1 -e "await page.click('button')"
```
### reloading extension during development