From 01e1f7491c1239cb03fac181bc53c6fb0ed5ed3f Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Thu, 7 Mar 2024 20:03:34 +0000 Subject: [PATCH] fix: test envs --- libs/utils/jest.config.ts | 2 +- libs/wallet/jest.config.ts | 2 +- libs/wallet/src/setup-tests.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 libs/wallet/src/setup-tests.ts diff --git a/libs/utils/jest.config.ts b/libs/utils/jest.config.ts index 1269c7f51..cb1d2ad10 100644 --- a/libs/utils/jest.config.ts +++ b/libs/utils/jest.config.ts @@ -25,6 +25,6 @@ export default { '^.+\\.[tj]s$': ['@swc/jest', swcJestConfig], }, moduleFileExtensions: ['ts', 'js', 'html'], - testEnvironment: 'node', + testEnvironment: 'jsdom', coverageDirectory: '../../coverage/libs/utils', }; diff --git a/libs/wallet/jest.config.ts b/libs/wallet/jest.config.ts index dcd6bca40..a2d5676be 100644 --- a/libs/wallet/jest.config.ts +++ b/libs/wallet/jest.config.ts @@ -25,6 +25,6 @@ export default { '^.+\\.[tj]s$': ['@swc/jest', swcJestConfig], }, moduleFileExtensions: ['ts', 'js', 'html'], - testEnvironment: 'node', + testEnvironment: 'jsdom', coverageDirectory: '../../coverage/libs/wallet', }; diff --git a/libs/wallet/src/setup-tests.ts b/libs/wallet/src/setup-tests.ts deleted file mode 100644 index 7b0828bfa..000000000 --- a/libs/wallet/src/setup-tests.ts +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom';