Fix jest/valid-expects lints (#11238)
This commit is contained in:
parent
d7d60a3255
commit
f5f31eb7d8
7 changed files with 27 additions and 26 deletions
|
@ -174,9 +174,6 @@ module.exports = {
|
|||
// Disabled tests are a reality for now but as soon as all of the xits are
|
||||
// eliminated, we should enforce this.
|
||||
"jest/no-disabled-tests": "off",
|
||||
// TODO: There are many tests with invalid expects that should be fixed,
|
||||
// https://github.com/vector-im/element-web/issues/24709
|
||||
"jest/valid-expect": "off",
|
||||
// Also treat "oldBackendOnly" as a test function.
|
||||
// Used in some crypto tests.
|
||||
"jest/no-standalone-expect": [
|
||||
|
@ -194,6 +191,7 @@ module.exports = {
|
|||
},
|
||||
rules: {
|
||||
// Cypress "promises" work differently - disable some related rules
|
||||
"jest/valid-expect": "off",
|
||||
"jest/valid-expect-in-promise": "off",
|
||||
"jest/no-done-callback": "off",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue