Skip to content

Commit

Permalink
feat(test-React): add React Testing Library support
Browse files Browse the repository at this point in the history
issue #64
  • Loading branch information
sabertazimi committed Aug 4, 2021
1 parent c0af081 commit a8b087a
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ module.exports = {
testURL: 'http://localhost',
testEnvironment: 'jsdom',
setupFiles: ['<rootDir>/jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/jest.env.setup.js'],
};
1 change: 1 addition & 0 deletions jest.env.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom/extend-expect';
Loading

0 comments on commit a8b087a

Please sign in to comment.