Skip to content

Commit ee438d2

Browse files
committed
Add browser-based tests with Playwright and Vitest
Replaces the placeholder test with comprehensive browser tests covering core, security, and isolation scenarios. Updates CI workflow and Vite config to run tests in Chromium, Firefox, and WebKit using @vitest/browser-playwright. Adds the required dev dependency.
1 parent a0ac052 commit ee438d2

7 files changed

Lines changed: 724 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
matrix:
1212
script:
1313
- name: Unit tests
14-
command: npm test
14+
command: npx playwright install --with-deps && npm test
1515
- name: Typecheck
1616
command: npm run test:types
1717
- name: Lint

package-lock.json

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
},
4242
"devDependencies": {
4343
"@biomejs/biome": "^2.3.13",
44+
"@vitest/browser-playwright": "^4.0.18",
4445
"lefthook": "^2.0.16",
4546
"typescript": "^5.9.3",
4647
"version-bump-prompt": "^6.1.0",

src/index.test.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)