update comment

This commit is contained in:
Simon Knott 2024-11-05 08:26:05 +01:00
parent 43691c3468
commit a99f032bcc
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -410,8 +410,8 @@ test('globalSetup should support multiple', async ({ runInlineTest }) => {
}, { reporter: 'line' });
expect(result.passed).toBe(2);
// behaviour: setups in order, teardowns in reverse order.
// setup-returned functions inherit their position, and take precedence over `globalTeardown` scripts.
// first setups, then setup callbacks in reverse order.
// then teardowns in declared order.
expect(result.outputLines).toEqual([
'globalSetup1',
'globalSetup2',