ensure that teardown throwing isn't a showstopper
This commit is contained in:
parent
d544059250
commit
a72ec6e824
|
|
@ -400,7 +400,7 @@ test('globalSetup should support multiple', async ({ runInlineTest }) => {
|
||||||
'globalSetup3.ts': `module.exports = () => { console.log('%%globalSetup3'); return () => console.log('%%globalSetup3Function'); }`,
|
'globalSetup3.ts': `module.exports = () => { console.log('%%globalSetup3'); return () => console.log('%%globalSetup3Function'); }`,
|
||||||
'globalSetup4.ts': `module.exports = () => console.log('%%globalSetup4');`,
|
'globalSetup4.ts': `module.exports = () => console.log('%%globalSetup4');`,
|
||||||
'globalTeardown1.ts': `module.exports = () => console.log('%%globalTeardown1')`,
|
'globalTeardown1.ts': `module.exports = () => console.log('%%globalTeardown1')`,
|
||||||
'globalTeardown2.ts': `module.exports = () => console.log('%%globalTeardown2');`,
|
'globalTeardown2.ts': `module.exports = () => { console.log('%%globalTeardown2'); throw new Error('kaboom'); }`,
|
||||||
|
|
||||||
'a.test.js': `
|
'a.test.js': `
|
||||||
import { test } from '@playwright/test';
|
import { test } from '@playwright/test';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue