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/,