Skip to content

Commit c4b0251

Browse files
committed
Add CI
1 parent 2e40d87 commit c4b0251

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
node-version: '20'
1515
- name: Install deps (with cache)
1616
uses: bahmutov/npm-install@v1
17+
- name: Install Puppeteer browser
18+
run: npx puppeteer browsers install chrome
1719
- name: Test codebase
18-
run: yarn test
20+
run: yarn test --run
1921
- name: Upload coverage
2022
uses: codecov/codecov-action@v2
2123
- name: Typecheck codebase

test/browser.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ describe('Browser tests with Puppeteer', () => {
157157
page = await browser.newPage()
158158

159159
await page.goto(`http://localhost:${appPort}/`)
160-
await page.waitForFunction('window.ready === true')
161-
})
160+
await page.waitForFunction('window.ready === true', { timeout: 10000 })
161+
}, 30000)
162162

163163
afterAll(async () => {
164164
await browser?.close()

0 commit comments

Comments
 (0)