Moved jest import into config

This commit is contained in:
Dustin Brett 2021-01-23 21:45:30 -08:00
parent dc62e6c395
commit 610280bdf5
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,7 @@
module.exports = {
moduleDirectories: ['.', 'node_modules'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js']
setupFilesAfterEnv: [
'@testing-library/jest-dom/extend-expect',
'<rootDir>/jest.setup.js'
]
};

View File

@ -1,5 +1,3 @@
import '@testing-library/jest-dom/extend-expect';
import preloadAll from 'jest-next-dynamic';
beforeAll(async () => {