Skip to content

Commit 3a95f55

Browse files
committed
fix (albeit with annoying warnings)
1 parent 9dc9da6 commit 3a95f55

File tree

1 file changed

+4
-2
lines changed
  • packages/svelte/tests/runtime-browser

1 file changed

+4
-2
lines changed

packages/svelte/tests/runtime-browser/test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ async function run_test(
191191

192192
try {
193193
const page = await browser.newPage();
194-
page.on('console', (type) => {
194+
page.on('console', (message) => {
195+
let method = message.type();
196+
if (method === 'warning') method = 'warn';
195197
// @ts-ignore
196-
console[type.type()](type.text());
198+
console[method](message.text());
197199
});
198200

199201
if (build_result_ssr) {

0 commit comments

Comments
 (0)