Skip to content

Commit 8579c85

Browse files
authored
Merge pull request #48 from github/copilot/convert-tests-to-vitest-playwright
Convert test suite from Karma/Chai/Mocha to Vitest with Playwright
2 parents eeb4a58 + 13ff328 commit 8579c85

File tree

9 files changed

+3336
-4516
lines changed

9 files changed

+3336
-4516
lines changed

.eslintrc.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@
2020
"github/unescaped-html-literal": "off",
2121
"import/no-unresolved": "off",
2222
"import/extensions": "off",
23+
"import/named": "off",
2324
"eslint-comments/no-use": "off",
24-
"github/no-inner-html": "off"
25-
},
26-
"env": {
27-
"mocha": true
28-
},
29-
"globals": {
30-
"assert": true,
31-
"remoteForm": true
25+
"github/no-inner-html": "off",
26+
"i18n-text/no-en": "off",
27+
"filenames/match-regex": "off"
3228
}
3329
}
3430
]

.github/workflows/nodejs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v4
1414
with:
15-
node-version: 22
15+
node-version: 24
1616
cache: 'npm'
1717
- run: npm install
18+
- run: npx playwright install chromium
1819
- run: npm run build --if-present
1920
- run: npm test
2021
env:

.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
dist/
22
node_modules/
3+
test/__screenshots__

0 commit comments

Comments
 (0)