Skip to content

Commit c369b4b

Browse files
committed
increase stack trace limit, revert test change
1 parent cc29ea7 commit c369b4b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/svelte/tests/runtime-runes/samples/inspect-console-trace/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default test({
1313
b2.click();
1414
await Promise.resolve();
1515

16-
assert.ok(logs[0].stack.startsWith('Error:'));
16+
assert.ok(logs[0].stack.startsWith('Error:') && logs[0].stack.includes('HTMLButtonElement.'));
1717
assert.deepEqual(logs[1], 1);
1818
}
1919
});

packages/svelte/tests/suite.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const filter = process.env.FILTER
2020
)
2121
: /./;
2222

23+
// this defaults to 10, which is too low for some of our tests
24+
Error.stackTraceLimit = 100;
25+
2326
export function suite<Test extends BaseTest>(fn: (config: Test, test_dir: string) => void) {
2427
return {
2528
test: (config: Test) => config,

0 commit comments

Comments
 (0)