From 34e4c008e63b6c33634cc2d6f89c521802f59286 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Wed, 12 Aug 2026 14:01:42 +0900 Subject: [PATCH] test: strip rc versions from reporter output snapshot (#10926) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: OpenCode --- test/e2e/test/artifacts.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/test/artifacts.test.ts b/test/e2e/test/artifacts.test.ts index 66f3dbef7..3e85b98c5 100644 --- a/test/e2e/test/artifacts.test.ts +++ b/test/e2e/test/artifacts.test.ts @@ -267,6 +267,7 @@ describe('API', () => { }) }) +// verify artifacts don't affect reporter output describe('reporters', () => { test('tap', async () => { const { stdout } = await runInlineTests( @@ -368,7 +369,7 @@ describe('reporters', () => { expect( stdout - .replace(/\d+\.\d+\.\d+(-beta\.\d+)?/, '') + .replace(/\d+\.\d+\.\d+(-(beta|rc)\.\d+)?/, '') .replace(ctx!.config.root, '') .replace(/\d+:\d+:\d+/, '