Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
refactor(tests): replace testframeworksetup with setupfilesafterenv
Browse files Browse the repository at this point in the history
setupTestFrameworkScriptFile was deprecated jestjs/jest#7119
  • Loading branch information
NickyMeuleman committed Jan 29, 2019
1 parent 58b93fa commit 6adfd7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$';

module.exports = {
testRegex: TEST_REGEX,
setupTestFrameworkScriptFile: '<rootDir>/testUtils/setupTest.ts',
setupFilesAfterEnv: [
'jest-dom/extend-expect',
'react-testing-library/cleanup-after-each',
'jest-styled-components',
],
transform: {
'^.+\\.tsx?$': 'babel-jest',
},
Expand Down
3 changes: 0 additions & 3 deletions packages/frontend/testUtils/setupTest.ts

This file was deleted.

0 comments on commit 6adfd7d

Please sign in to comment.