Skip to content

Commit

Permalink
wip: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 20, 2023
1 parent dc2569e commit 6a48986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions playground/spa/__tests__/spa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('hmr', () => {
() => editFile('public-typescript/hmr.ts', (code) => code.replace('hmr original text', u)),
['[vite] hot updated: /src/App.tsx'],
false,
(l) => console.log(l, 'l'),
)
await untilUpdated(() => page.textContent('#hmr'), u)
})
Expand Down
3 changes: 2 additions & 1 deletion playground/vitestSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ beforeAll(async (s) => {
}

try {
page.addListener('console', (msg) => {
page.on('console', (msg) => {
// ignore favicon request in headed browser
if (
process.env.VITE_DEBUG_SERVE &&
Expand All @@ -121,6 +121,7 @@ beforeAll(async (s) => {
) {
return
}
if (msg.text().includes('React DevTools')) return
browserLogs.push(msg.text())
})
page.on('pageerror', (error) => {
Expand Down

0 comments on commit 6a48986

Please sign in to comment.