Skip to content

Commit

Permalink
test: use react-testing-library (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
coston committed Apr 17, 2024
1 parent 8ca7886 commit 6d8d63d
Show file tree
Hide file tree
Showing 6 changed files with 23,727 additions and 16,498 deletions.
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,jsx}'],
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testEnvironment: 'jest-environment-jsdom',
};
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom';
Loading

0 comments on commit 6d8d63d

Please sign in to comment.