fix :: fix to expect stripAnsi

This commit is contained in:
osohyun0224 2024-09-17 01:10:37 +09:00
parent 082154d979
commit 0745b36960

View file

@ -1272,10 +1272,9 @@ test('test custom location functionality', async ({ runInlineTest }) => {
}, { reporter: '', workers: 1 }); }, { reporter: '', workers: 1 });
expect(result.exitCode).toBe(0); expect(result.exitCode).toBe(0);
expect(result.outputLines).toEqual([ expect(stripAnsi(result.output)).toBe(`
'hook |Before Hooks', hook |Before Hooks
'test.step |Perform a dummy step @ dummy-file.ts:123', test.step |Perform a dummy step @ dummy-file.ts:123
'hook |After Hooks' hook |After Hooks
]); `);
}); });