Skip to content

Commit f3bd459

Browse files
authored
test: switch to Vitest and Playwright (#200)
1 parent 86355cd commit f3bd459

14 files changed

Lines changed: 4146 additions & 3995 deletions

.github/workflows/build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: build
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
7-
branches: [master]
7+
branches: [main]
88

99
jobs:
1010
build:
@@ -14,18 +14,23 @@ jobs:
1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version: 20
17-
- run: npm ci
18-
- run: npm run build --if-present
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Build
20+
run: npm run build --if-present
1921
env:
2022
CI: true
2123

2224
test:
23-
runs-on: macos-latest
25+
runs-on: ubuntu-latest
2426
steps:
2527
- uses: actions/checkout@v4
2628
- uses: actions/setup-node@v4
2729
with:
2830
node-version: 20
29-
- run: npm ci
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: Install Playwright Browsers
34+
run: npx playwright install --with-deps
3035
- run: npm test
3136
timeout-minutes: 5

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ node_modules/*
2020

2121
docs
2222
stats.html
23+
24+
tests/__screenshots__

0 commit comments

Comments
 (0)