Skip to content

Commit

Permalink
Configure Jest for TypeScript (#12167)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 9, 2022
1 parent 6b7dd46 commit 531a0ff
Show file tree
Hide file tree
Showing 101 changed files with 1,730 additions and 3,589 deletions.
12 changes: 12 additions & 0 deletions .eslintrc
Expand Up @@ -386,7 +386,9 @@
"files": [
"__mocks__/**/*.js",
"**/test/**/*.js",
"**/test/**/*.ts",
"**/testUtils/**/*.js",
"**/testUtils/**/*.ts",
"tests/js/**/*.js"
],
"excludedFiles": [
Expand Down Expand Up @@ -430,6 +432,16 @@
"testing-library/no-dom-import": "error"
}
},
{
"files": [
"**/test/**/*.ts",
"**/testUtils/**/*.ts"
],
"rules": {
"@typescript-eslint/unbound-method": "off",
"jest/unbound-method": "error"
}
},
{
"files": [
"__mocks__/**/*.js"
Expand Down

0 comments on commit 531a0ff

Please sign in to comment.