From 032f38724ec0d39f1b25ecfe17e3ccae3b3f23f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 12 Aug 2022 10:48:06 +0200 Subject: [PATCH] Always use the same timezone when running unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To prevent timezone sensitive tests from failing when the local environment is set up with a different timezone. Signed-off-by: Rūdolfs Ošiņš --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de392ab49..13b366790 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "scripts/build", "check": "scripts/check", "coverage": "npx nyc report", - "test:unit": "vitest run", + "test:unit": "TZ='UTC' vitest run", "test:components": "cypress run --component", "test:e2e": "cypress run", "test:open": "cypress open"