Skip to content

Commit a991102

Browse files
authored
Merge pull request #145 from github/copilot/convert-tests-to-vitest-playwright
Migrate from Karma/Mocha/Chai to Vitest with Playwright browser mode
2 parents 783c7f1 + 9ce2a3c commit a991102

File tree

13 files changed

+2842
-3991
lines changed

13 files changed

+2842
-3991
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ jobs:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 22
14+
node-version: 24
1515
cache: npm
1616
- name: npm install, build, and test
1717
run: |
1818
npm install
1919
npm run build
20+
npx playwright install chromium
2021
npm test
2122
env:
2223
CI: true

.github/workflows/publish-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 22
19+
node-version: 24
2020
cache: npm
2121

2222
- run: npm install

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org/
2020
cache: npm
2121
- run: npm ci
22+
- run: npx playwright install chromium
2223
- run: npm test
2324
- run: npm version ${TAG_NAME} --git-tag-version=false
2425
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
dist/
33
pages/hotkey
4+
test/__screenshots__

karma.config.cjs

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

0 commit comments

Comments
 (0)