remove module aliases from jest config

This commit is contained in:
Satindar Dhillon
2022-03-03 13:50:54 -08:00
parent cecb9da4c7
commit 2db59860d2
2 changed files with 0 additions and 7 deletions

View File

@ -8,12 +8,6 @@ const createJestConfig = nextJest({
// Add any custom config to be passed to Jest
const customJestConfig = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleNameMapper: {
// Handle module aliases (this will be automatically configured for you soon)
'^@/components/(.*)$': '<rootDir>/components/$1',
'^@/pages/(.*)$': '<rootDir>/pages/$1',
'^@/lib/(.*)$': '<rootDir>/lib/$1',
},
testEnvironment: 'jest-environment-jsdom',
}

View File

@ -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'