Skip to content

Commit

Permalink
test(unit): add @testing-library/dom and adjustment import js-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jun 11, 2024
1 parent 9f624fd commit 4ea9514
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
79 changes: 79 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
]
},
"devDependencies": {
"@testing-library/dom": "^10.1.0",
"sass": "^1.77.4"
}
}
2 changes: 1 addition & 1 deletion src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom/extend-expect';
import '@testing-library/jest-dom';

0 comments on commit 4ea9514

Please sign in to comment.