increase stack trace limit, revert test change

pull/16389/head
Rich Harris 2 months ago
parent cc29ea7859
commit c369b4bcf7

@ -13,7 +13,7 @@ export default test({
b2.click();
await Promise.resolve();
assert.ok(logs[0].stack.startsWith('Error:'));
assert.ok(logs[0].stack.startsWith('Error:') && logs[0].stack.includes('HTMLButtonElement.'));
assert.deepEqual(logs[1], 1);
}
});

@ -20,6 +20,9 @@ const filter = process.env.FILTER
)
: /./;
// this defaults to 10, which is too low for some of our tests
Error.stackTraceLimit = 100;
export function suite<Test extends BaseTest>(fn: (config: Test, test_dir: string) => void) {
return {
test: (config: Test) => config,

Loading…
Cancel
Save