fix :: fix to expect stripAnsi
This commit is contained in:
parent
082154d979
commit
0745b36960
|
|
@ -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
|
||||||
]);
|
`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue