From 0745b36960e3ac50104ff187a26f802ee76acb64 Mon Sep 17 00:00:00 2001 From: osohyun0224 <53892427+osohyun0224@users.noreply.github.com> Date: Tue, 17 Sep 2024 01:10:37 +0900 Subject: [PATCH] fix :: fix to expect stripAnsi --- tests/playwright-test/test-step.spec.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/playwright-test/test-step.spec.ts b/tests/playwright-test/test-step.spec.ts index aec45ebd11..2ba9a7abb3 100644 --- a/tests/playwright-test/test-step.spec.ts +++ b/tests/playwright-test/test-step.spec.ts @@ -1272,10 +1272,9 @@ test('test custom location functionality', async ({ runInlineTest }) => { }, { reporter: '', workers: 1 }); expect(result.exitCode).toBe(0); - expect(result.outputLines).toEqual([ - 'hook |Before Hooks', - 'test.step |Perform a dummy step @ dummy-file.ts:123', - 'hook |After Hooks' - ]); -}); - + expect(stripAnsi(result.output)).toBe(` +hook |Before Hooks +test.step |Perform a dummy step @ dummy-file.ts:123 +hook |After Hooks +`); +}); \ No newline at end of file