Skip to content

Commit

Permalink
test: recognize type definition for screen of testing-library/react (#…
Browse files Browse the repository at this point in the history
…903)

* deps: bump @testing-library/react to v10.1.0

* test: enable type checking with ts-jest

* deps: bump jest packages to 25.x
  • Loading branch information
koba04 authored Jan 20, 2021
1 parent a9c10f7 commit 6907d42
Show file tree
Hide file tree
Showing 3 changed files with 1,431 additions and 1,263 deletions.
5 changes: 0 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
module.exports = {
preset: 'ts-jest',
testRegex: '/test/.*\\.test\\.tsx$',
globals: {
'ts-jest': {
diagnostics: false
}
},
modulePathIgnorePatterns: ['<rootDir>/examples/']
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
]
},
"devDependencies": {
"@testing-library/react": "9.4.0",
"@types/jest": "24.0.20",
"@testing-library/react": "10.1.0",
"@types/jest": "25.2.3",
"@types/node": "11.12.0",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "2.5.0",
Expand All @@ -49,12 +49,12 @@
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"husky": "2.4.1",
"jest": "24.9.0",
"jest": "25.5.4",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"react": "16.11.0",
"react-dom": "16.11.0",
"ts-jest": "24.1.0",
"ts-jest": "25.5.1",
"typescript": "3.6.4"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 6907d42

Please sign in to comment.