diff --git a/jest.config.js b/jest.config.js index 40acf3bf3b..ea7c9c603a 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: '/',