Skip to content

Commit 1cc859f

Browse files
committed
chore: add @testing-library/jest-dom and remove @testing-library/jest-dom
1 parent 5bb2f8e commit 1cc859f

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ module.exports = {
55
testPathIgnorePatterns: ['/.history/'],
66
modulePathIgnorePatterns: ['<rootDir>/package.json'],
77
resetMocks: false,
8-
setupFiles: ['./jest.setup.ts', 'jest-localstorage-mock'],
8+
setupFiles: ['./jest.setup.js', 'jest-localstorage-mock'],
9+
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
910
globals: {
1011
'ts-jest': {
1112
tsconfig: 'tsconfig.json',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@babel/plugin-transform-runtime": "^7.19.6",
3333
"@commitlint/cli": "^17.1.2",
3434
"@commitlint/config-conventional": "^17.1.0",
35-
"@testing-library/dom": "^8.19.0",
35+
"@testing-library/jest-dom": "^5.16.5",
3636
"@testing-library/react": "^13.4.0",
3737
"@testing-library/react-hooks": "^8.0.1",
3838
"@types/jest": "^27.4.1",

pnpm-lock.yaml

Lines changed: 43 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)