Skip to content

Commit

Permalink
chore(deps-major) Update dependency @testing-library/jest-dom to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and ansmonjol committed Sep 1, 2023
1 parent a6745fd commit b41c586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions jest-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom'
6 changes: 2 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ module.exports = {

testEnvironment: 'jsdom',

// Runs special logic, such as cleaning up components
// when using React Testing Library and adds special
// extended assertions to Jest
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
// Load setup files before test execution
setupFilesAfterEnv: ['./jest-setup.ts'],

// Test spec file resolution pattern
// Matches parent folder `__tests__` and filename
Expand Down

0 comments on commit b41c586

Please sign in to comment.