From cf7e49b4149dc9e7e85c0ab7eaf1a9e304febf30 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 23 Nov 2021 11:25:11 +0800 Subject: [PATCH] chore: fix TZ problem --- .github/workflows/ci.yaml | 2 ++ test/setup.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e893890f..dfbf1027 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,5 +35,7 @@ jobs: run: cd web && yarn check:type - name: Test run: yarn test + env: + TZ: Asia/Shanghai - name: Check Build run: cd web && yarn build diff --git a/test/setup.js b/test/setup.js index cd33b518..da0b85ac 100644 --- a/test/setup.js +++ b/test/setup.js @@ -1,8 +1,6 @@ // mock jest.mock('tailchat-shared/i18n'); -process.env.TZ = 'Asia/Shanghai'; - const ignoreErroMessages = [ /Warning.*not wrapped in act/, /PluginManifest validation/,