From d5c3f248a5063b5103f85837a34462a56a44002d Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Tue, 4 Nov 2025 09:36:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20flaky=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depend the month the test could fail if the current month has 30 or 31 days, so change 30 to 35 to be sure that it will always be at least 1 month ago. --- .../docs-grid/components/__tests__/DocsGridItemDate.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/apps/impress/src/features/docs/docs-grid/components/__tests__/DocsGridItemDate.test.tsx b/src/frontend/apps/impress/src/features/docs/docs-grid/components/__tests__/DocsGridItemDate.test.tsx index 8ef888be..eb9546a8 100644 --- a/src/frontend/apps/impress/src/features/docs/docs-grid/components/__tests__/DocsGridItemDate.test.tsx +++ b/src/frontend/apps/impress/src/features/docs/docs-grid/components/__tests__/DocsGridItemDate.test.tsx @@ -44,7 +44,7 @@ describe('DocsGridItemDate', () => { rendered: '5 days ago', }, { - updated_at: DateTime.now().minus({ days: 30 }).toISO(), + updated_at: DateTime.now().minus({ days: 35 }).toISO(), rendered: '1 month ago', }, ].forEach(({ updated_at, rendered }) => {