create-vike 0.0.385 → 0.0.387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.testRun.ts
CHANGED
|
@@ -111,10 +111,10 @@ function testRun(
|
|
|
111
111
|
test('error page', async () => {
|
|
112
112
|
await page.goto(getServerUrl() + '/does-not-exist')
|
|
113
113
|
expect(await page.textContent('#page-content')).toBe('Page not found.')
|
|
114
|
-
expectLog(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
114
|
+
expectLog('Failed to load resource: the server responded with a status of 404 (Not Found)', {
|
|
115
|
+
filter: (log) =>
|
|
116
|
+
log.logSource === 'Browser Error' && partRegex`http://${/[^\/]+/}:3000/does-not-exist`.test(log.logText)
|
|
117
|
+
})
|
|
118
118
|
})
|
|
119
119
|
|
|
120
120
|
test('data fetching page, HTML', async () => {
|