From 2db59860d22a60f59821c4b630d2a60a1262c5af Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Thu, 3 Mar 2022 13:50:54 -0800 Subject: [PATCH] remove module aliases from jest config --- packages/web/jest.config.js | 6 ------ packages/web/jest.setup.js | 1 - 2 files changed, 7 deletions(-) diff --git a/packages/web/jest.config.js b/packages/web/jest.config.js index 7c20d0b3f..fd04a1cea 100644 --- a/packages/web/jest.config.js +++ b/packages/web/jest.config.js @@ -8,12 +8,6 @@ const createJestConfig = nextJest({ // Add any custom config to be passed to Jest const customJestConfig = { setupFilesAfterEnv: ['/jest.setup.js'], - moduleNameMapper: { - // Handle module aliases (this will be automatically configured for you soon) - '^@/components/(.*)$': '/components/$1', - '^@/pages/(.*)$': '/pages/$1', - '^@/lib/(.*)$': '/lib/$1', - }, testEnvironment: 'jest-environment-jsdom', } diff --git a/packages/web/jest.setup.js b/packages/web/jest.setup.js index 996e74a2b..76e9471e9 100644 --- a/packages/web/jest.setup.js +++ b/packages/web/jest.setup.js @@ -1,6 +1,5 @@ // Optional: configure or set up a testing framework before each test. // If you delete this file, remove `setupFilesAfterEnv` from `jest.config.js` -// Used for __tests__/testing-library.js // Learn more: https://github.com/testing-library/jest-dom import '@testing-library/jest-dom/extend-expect'