From 33cfa876d04e88ad10c7ac6a1857ca079850b569 Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Wed, 24 Jun 2026 20:50:49 +0200 Subject: [PATCH] chore(frontend/test): normalize test environement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit normalize environment to avoid such issues during tests on non EN local machine: ``` AssertionError: expected 'il y a 2 ans' to match /year/ ❯ src/lib/utils/time.test.ts:24:60 22| 23| it('formats past times in the largest matching unit', () => { 24| expect(relativeTimeAgo(Date.now() - 2 * 31_536_000_000)).toMatch(/year/); ``` --- frontend/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 4b01215f..4a2a1954 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -14,9 +14,9 @@ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "lint": "eslint .", "format": "prettier --write .", - "test:unit": "vitest run", - "test:unit:watch": "vitest", - "test:unit:coverage": "rm -rf ../tests/e2e/.nyc_output_unit && COVERAGE=1 vitest run" + "test:unit": "LANG=C vitest run", + "test:unit:watch": "LANG=C vitest", + "test:unit:coverage": "rm -rf ../tests/e2e/.nyc_output_unit && LANG=C COVERAGE=1 vitest run" }, "devDependencies": { "@eslint/js": "^10.0.1",