Skip to content

Commit

Permalink
Update vitest/vscode config to support debugging. Switched from webdr…
Browse files Browse the repository at this point in the history
…iver-io to playwright
  • Loading branch information
kaisalmen committed Sep 27, 2024
1 parent 72447e8 commit 35d07bb
Show file tree
Hide file tree
Showing 8 changed files with 605 additions and 147 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
npm run report:versions
npm run lint
- name: Install playwright Chromium
run: |
npx playwright install --with-deps chromium
- name: Test
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"davidanson.vscode-markdownlint",
"vitest.explorer"
]
}
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,27 @@
"url": "http://localhost:20001",
"webRoot": "${workspaceFolder}",
"userDataDir": "${workspaceFolder}/.vscode/profile"
},
{
"type": "node",
"request": "launch",
"name": "Run Vitest Browser Debug",
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["--watch", "--inspect-brk=20222", "--browser", "--no-file-parallelism"],
"console": "integratedTerminal"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Playwright Chromium",
"port": 20222
}
],
"compounds": [
{
"name": "Debug Vitest Browser",
"configurations": ["Attach to Playwright Chromium", "Run Vitest Browser Debug"],
"stopAll": true
}
]
}
Loading

0 comments on commit 35d07bb

Please sign in to comment.