Skip to content

Commit 91fb3ba

Browse files
committed
fix(jest): Turn off TypeScript no-invalid-void-type rule in tests
This makes jest.fn<void, [args]>() impossible to use.
1 parent 4ee8914 commit 91fb3ba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/eslint-plugin-zillow/lib/render-plugin-configs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async function main() {
2121
extends: ['zillow/jest'],
2222
rules: {
2323
// plugin-specific rules that hamper effective testing
24+
'@typescript-eslint/no-invalid-void-type': ['off'],
2425
},
2526
},
2627
[

packages/eslint-plugin-zillow/test/__snapshots__/eslint-plugin-zillow.test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Object {
2020
"zillow",
2121
],
2222
"rules": Object {
23+
"zillow/@typescript-eslint/no-invalid-void-type": Array [
24+
"off",
25+
],
2326
"zillow/jest/consistent-test-it": Array [
2427
"error",
2528
Object {

0 commit comments

Comments
 (0)