From d5d3e4fb96a30426fd84fd2f24725ad2e747389d Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Tue, 11 Oct 2022 22:30:42 +0800 Subject: [PATCH] fix: run test by jest (#891) (cherry picked from commit 06f4bfb6d74abac5f29c5f00c85d5095995367f6) --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index 40acf3bf3..ea7c9c603 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,6 +8,7 @@ module.exports = { testEnvironment: 'jsdom', preset: 'ts-jest', testMatch: ['**/__tests__/**/*.test.[jt]s?(x)'], + setupFiles: ['dotenv/config'], setupFilesAfterEnv: [require.resolve('jest-dom/extend-expect'), './jest.setup.ts'], moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '/',