Skip to content

Commit 18af7ba

Browse files
authored
Merge pull request #28 from github/copilot/convert-tests-to-vitest-playwright
Convert tests from mocha/chai to Vitest with Playwright browser mode
2 parents 766550b + 57f7106 commit 18af7ba

File tree

8 files changed

+3163
-1298
lines changed

8 files changed

+3163
-1298
lines changed

.github/workflows/node.js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
node-version: [20.x, 22.x]
22+
node-version: [22.x, 24.x]
2323
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2424

2525
steps:
@@ -29,5 +29,6 @@ jobs:
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm ci
32+
- run: npx playwright install chromium
3233
- run: npm run build --if-present
3334
- run: npm test

.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,2 +1,3 @@
11
node_modules/
22
dist/
3+
test/__screenshots__

0 commit comments

Comments
 (0)