Skip to content

Commit eec6da9

Browse files
authored
Merge pull request #68 from github/copilot/convert-to-vitest-playwright
Convert test infrastructure from Karma/Mocha/Chai to Vitest with Playwright
2 parents a3b6d2e + f2a8509 commit eec6da9

File tree

11 files changed

+4190
-5745
lines changed

11 files changed

+4190
-5745
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
node-version-file: '.node-version'
2020
cache: 'npm'
2121
- run: npm install
22+
- run: npx playwright install chromium --only-shell
2223
- run: npm run build
24+
- run: npm run lint
2325
- run: npm test
2426
env:
2527
CI: true

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
registry-url: https://registry.npmjs.org/
1919
cache: npm
2020
- run: npm ci
21+
- run: npx playwright install chromium --only-shell
22+
- run: npm run build
23+
- run: npm run lint
2124
- run: npm test
2225
- run: npm version ${TAG_NAME} --git-tag-version=false
2326
env:

.gitignore

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

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

karma.config.js

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

0 commit comments

Comments
 (0)