Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 51f836e

Browse files
committed
fix: disable eslint-plugin-testing-library temporarily
- still incompatible with eslint v8 - see testing-library/eslint-plugin-testing-library#499
1 parent d72f1d5 commit 51f836e

File tree

2 files changed

+2
-226
lines changed

2 files changed

+2
-226
lines changed

src/__tests__/overrides/__snapshots__/jest.test.js.snap

-224
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Object {
1717
},
1818
"plugins": Array [
1919
"jest",
20-
"testing-library",
2120
],
2221
"rules": Object {
2322
"import/no-namespace": "off",
@@ -76,32 +75,6 @@ Object {
7675
"require-unicode-regexp": "off",
7776
"sonarjs/no-duplicate-string": "off",
7877
"sonarjs/no-identical-functions": "off",
79-
"testing-library/await-async-query": "error",
80-
"testing-library/await-async-utils": "error",
81-
"testing-library/await-fire-event": "off",
82-
"testing-library/consistent-data-testid": "off",
83-
"testing-library/no-await-sync-events": "error",
84-
"testing-library/no-await-sync-query": "error",
85-
"testing-library/no-container": "warn",
86-
"testing-library/no-debug": "error",
87-
"testing-library/no-dom-import": "off",
88-
"testing-library/no-manual-cleanup": "error",
89-
"testing-library/no-node-access": "warn",
90-
"testing-library/no-promise-in-fire-event": "error",
91-
"testing-library/no-render-in-setup": "off",
92-
"testing-library/no-unnecessary-act": "error",
93-
"testing-library/no-wait-for-empty-callback": "error",
94-
"testing-library/no-wait-for-multiple-assertions": "error",
95-
"testing-library/no-wait-for-side-effects": "error",
96-
"testing-library/no-wait-for-snapshot": "error",
97-
"testing-library/prefer-explicit-assert": "warn",
98-
"testing-library/prefer-find-by": "warn",
99-
"testing-library/prefer-presence-queries": "error",
100-
"testing-library/prefer-query-by-disappearance": "error",
101-
"testing-library/prefer-screen-queries": "error",
102-
"testing-library/prefer-user-event": "error",
103-
"testing-library/prefer-wait-for": "warn",
104-
"testing-library/render-result-naming-convention": "off",
10578
},
10679
"settings": Object {
10780
"jest": Object {
@@ -128,7 +101,6 @@ Object {
128101
},
129102
"plugins": Array [
130103
"jest",
131-
"testing-library",
132104
],
133105
"rules": Object {
134106
"import/no-namespace": "off",
@@ -187,32 +159,7 @@ Object {
187159
"require-unicode-regexp": "off",
188160
"sonarjs/no-duplicate-string": "off",
189161
"sonarjs/no-identical-functions": "off",
190-
"testing-library/await-async-query": "error",
191-
"testing-library/await-async-utils": "error",
192-
"testing-library/await-fire-event": "off",
193-
"testing-library/consistent-data-testid": "off",
194-
"testing-library/no-await-sync-events": "error",
195-
"testing-library/no-await-sync-query": "error",
196-
"testing-library/no-container": "warn",
197-
"testing-library/no-debug": "error",
198-
"testing-library/no-dom-import": "off",
199162
"testing-library/no-manual-cleanup": "off",
200-
"testing-library/no-node-access": "warn",
201-
"testing-library/no-promise-in-fire-event": "error",
202-
"testing-library/no-render-in-setup": "off",
203-
"testing-library/no-unnecessary-act": "error",
204-
"testing-library/no-wait-for-empty-callback": "error",
205-
"testing-library/no-wait-for-multiple-assertions": "error",
206-
"testing-library/no-wait-for-side-effects": "error",
207-
"testing-library/no-wait-for-snapshot": "error",
208-
"testing-library/prefer-explicit-assert": "warn",
209-
"testing-library/prefer-find-by": "warn",
210-
"testing-library/prefer-presence-queries": "error",
211-
"testing-library/prefer-query-by-disappearance": "error",
212-
"testing-library/prefer-screen-queries": "error",
213-
"testing-library/prefer-user-event": "error",
214-
"testing-library/prefer-wait-for": "warn",
215-
"testing-library/render-result-naming-convention": "off",
216163
},
217164
"settings": Object {
218165
"jest": Object {
@@ -338,7 +285,6 @@ Object {
338285
"plugins": Array [
339286
"jest",
340287
"jest-dom",
341-
"testing-library",
342288
],
343289
"rules": Object {
344290
"@typescript-eslint/explicit-member-accessibility": "off",
@@ -416,35 +362,6 @@ Object {
416362
"require-unicode-regexp": "off",
417363
"sonarjs/no-duplicate-string": "off",
418364
"sonarjs/no-identical-functions": "off",
419-
"testing-library/await-async-query": "error",
420-
"testing-library/await-async-utils": "error",
421-
"testing-library/await-fire-event": "off",
422-
"testing-library/consistent-data-testid": "off",
423-
"testing-library/no-await-sync-events": "error",
424-
"testing-library/no-await-sync-query": "error",
425-
"testing-library/no-container": "warn",
426-
"testing-library/no-debug": "error",
427-
"testing-library/no-dom-import": Array [
428-
"warn",
429-
"react",
430-
],
431-
"testing-library/no-manual-cleanup": "error",
432-
"testing-library/no-node-access": "warn",
433-
"testing-library/no-promise-in-fire-event": "error",
434-
"testing-library/no-render-in-setup": "off",
435-
"testing-library/no-unnecessary-act": "error",
436-
"testing-library/no-wait-for-empty-callback": "error",
437-
"testing-library/no-wait-for-multiple-assertions": "error",
438-
"testing-library/no-wait-for-side-effects": "error",
439-
"testing-library/no-wait-for-snapshot": "error",
440-
"testing-library/prefer-explicit-assert": "warn",
441-
"testing-library/prefer-find-by": "warn",
442-
"testing-library/prefer-presence-queries": "error",
443-
"testing-library/prefer-query-by-disappearance": "error",
444-
"testing-library/prefer-screen-queries": "error",
445-
"testing-library/prefer-user-event": "error",
446-
"testing-library/prefer-wait-for": "warn",
447-
"testing-library/render-result-naming-convention": "off",
448365
},
449366
"settings": Object {
450367
"jest": Object {
@@ -476,7 +393,6 @@ Object {
476393
"plugins": Array [
477394
"jest",
478395
"jest-dom",
479-
"testing-library",
480396
],
481397
"rules": Object {
482398
"@typescript-eslint/explicit-member-accessibility": "off",
@@ -554,35 +470,6 @@ Object {
554470
"require-unicode-regexp": "off",
555471
"sonarjs/no-duplicate-string": "off",
556472
"sonarjs/no-identical-functions": "off",
557-
"testing-library/await-async-query": "error",
558-
"testing-library/await-async-utils": "error",
559-
"testing-library/await-fire-event": "off",
560-
"testing-library/consistent-data-testid": "off",
561-
"testing-library/no-await-sync-events": "error",
562-
"testing-library/no-await-sync-query": "error",
563-
"testing-library/no-container": "warn",
564-
"testing-library/no-debug": "error",
565-
"testing-library/no-dom-import": Array [
566-
"warn",
567-
"react",
568-
],
569-
"testing-library/no-manual-cleanup": "error",
570-
"testing-library/no-node-access": "warn",
571-
"testing-library/no-promise-in-fire-event": "error",
572-
"testing-library/no-render-in-setup": "off",
573-
"testing-library/no-unnecessary-act": "error",
574-
"testing-library/no-wait-for-empty-callback": "error",
575-
"testing-library/no-wait-for-multiple-assertions": "error",
576-
"testing-library/no-wait-for-side-effects": "error",
577-
"testing-library/no-wait-for-snapshot": "error",
578-
"testing-library/prefer-explicit-assert": "warn",
579-
"testing-library/prefer-find-by": "warn",
580-
"testing-library/prefer-presence-queries": "error",
581-
"testing-library/prefer-query-by-disappearance": "error",
582-
"testing-library/prefer-screen-queries": "error",
583-
"testing-library/prefer-user-event": "error",
584-
"testing-library/prefer-wait-for": "warn",
585-
"testing-library/render-result-naming-convention": "off",
586473
},
587474
"settings": Object {
588475
"jest": Object {
@@ -613,7 +500,6 @@ Object {
613500
"plugins": Array [
614501
"jest",
615502
"jest-dom",
616-
"testing-library",
617503
],
618504
"rules": Object {
619505
"import/no-namespace": "off",
@@ -685,35 +571,6 @@ Object {
685571
"require-unicode-regexp": "off",
686572
"sonarjs/no-duplicate-string": "off",
687573
"sonarjs/no-identical-functions": "off",
688-
"testing-library/await-async-query": "error",
689-
"testing-library/await-async-utils": "error",
690-
"testing-library/await-fire-event": "off",
691-
"testing-library/consistent-data-testid": "off",
692-
"testing-library/no-await-sync-events": "error",
693-
"testing-library/no-await-sync-query": "error",
694-
"testing-library/no-container": "warn",
695-
"testing-library/no-debug": "error",
696-
"testing-library/no-dom-import": Array [
697-
"warn",
698-
"react",
699-
],
700-
"testing-library/no-manual-cleanup": "error",
701-
"testing-library/no-node-access": "warn",
702-
"testing-library/no-promise-in-fire-event": "error",
703-
"testing-library/no-render-in-setup": "off",
704-
"testing-library/no-unnecessary-act": "error",
705-
"testing-library/no-wait-for-empty-callback": "error",
706-
"testing-library/no-wait-for-multiple-assertions": "error",
707-
"testing-library/no-wait-for-side-effects": "error",
708-
"testing-library/no-wait-for-snapshot": "error",
709-
"testing-library/prefer-explicit-assert": "warn",
710-
"testing-library/prefer-find-by": "warn",
711-
"testing-library/prefer-presence-queries": "error",
712-
"testing-library/prefer-query-by-disappearance": "error",
713-
"testing-library/prefer-screen-queries": "error",
714-
"testing-library/prefer-user-event": "error",
715-
"testing-library/prefer-wait-for": "warn",
716-
"testing-library/render-result-naming-convention": "off",
717574
},
718575
"settings": Object {
719576
"jest": Object {
@@ -744,7 +601,6 @@ Object {
744601
"plugins": Array [
745602
"jest",
746603
"jest-dom",
747-
"testing-library",
748604
],
749605
"rules": Object {
750606
"@typescript-eslint/explicit-member-accessibility": "off",
@@ -820,32 +676,6 @@ Object {
820676
"require-unicode-regexp": "off",
821677
"sonarjs/no-duplicate-string": "off",
822678
"sonarjs/no-identical-functions": "off",
823-
"testing-library/await-async-query": "error",
824-
"testing-library/await-async-utils": "error",
825-
"testing-library/await-fire-event": "off",
826-
"testing-library/consistent-data-testid": "off",
827-
"testing-library/no-await-sync-events": "error",
828-
"testing-library/no-await-sync-query": "error",
829-
"testing-library/no-container": "warn",
830-
"testing-library/no-debug": "error",
831-
"testing-library/no-dom-import": "off",
832-
"testing-library/no-manual-cleanup": "error",
833-
"testing-library/no-node-access": "warn",
834-
"testing-library/no-promise-in-fire-event": "error",
835-
"testing-library/no-render-in-setup": "off",
836-
"testing-library/no-unnecessary-act": "error",
837-
"testing-library/no-wait-for-empty-callback": "error",
838-
"testing-library/no-wait-for-multiple-assertions": "error",
839-
"testing-library/no-wait-for-side-effects": "error",
840-
"testing-library/no-wait-for-snapshot": "error",
841-
"testing-library/prefer-explicit-assert": "warn",
842-
"testing-library/prefer-find-by": "warn",
843-
"testing-library/prefer-presence-queries": "error",
844-
"testing-library/prefer-query-by-disappearance": "error",
845-
"testing-library/prefer-screen-queries": "error",
846-
"testing-library/prefer-user-event": "error",
847-
"testing-library/prefer-wait-for": "warn",
848-
"testing-library/render-result-naming-convention": "off",
849679
},
850680
"settings": Object {
851681
"jest": Object {
@@ -873,7 +703,6 @@ Object {
873703
"plugins": Array [
874704
"jest",
875705
"jest-dom",
876-
"testing-library",
877706
],
878707
"rules": Object {
879708
"import/no-namespace": "off",
@@ -943,32 +772,6 @@ Object {
943772
"require-unicode-regexp": "off",
944773
"sonarjs/no-duplicate-string": "off",
945774
"sonarjs/no-identical-functions": "off",
946-
"testing-library/await-async-query": "error",
947-
"testing-library/await-async-utils": "error",
948-
"testing-library/await-fire-event": "off",
949-
"testing-library/consistent-data-testid": "off",
950-
"testing-library/no-await-sync-events": "error",
951-
"testing-library/no-await-sync-query": "error",
952-
"testing-library/no-container": "warn",
953-
"testing-library/no-debug": "error",
954-
"testing-library/no-dom-import": "off",
955-
"testing-library/no-manual-cleanup": "error",
956-
"testing-library/no-node-access": "warn",
957-
"testing-library/no-promise-in-fire-event": "error",
958-
"testing-library/no-render-in-setup": "off",
959-
"testing-library/no-unnecessary-act": "error",
960-
"testing-library/no-wait-for-empty-callback": "error",
961-
"testing-library/no-wait-for-multiple-assertions": "error",
962-
"testing-library/no-wait-for-side-effects": "error",
963-
"testing-library/no-wait-for-snapshot": "error",
964-
"testing-library/prefer-explicit-assert": "warn",
965-
"testing-library/prefer-find-by": "warn",
966-
"testing-library/prefer-presence-queries": "error",
967-
"testing-library/prefer-query-by-disappearance": "error",
968-
"testing-library/prefer-screen-queries": "error",
969-
"testing-library/prefer-user-event": "error",
970-
"testing-library/prefer-wait-for": "warn",
971-
"testing-library/render-result-naming-convention": "off",
972775
},
973776
"settings": Object {
974777
"jest": Object {
@@ -1279,7 +1082,6 @@ Object {
12791082
},
12801083
"plugins": Array [
12811084
"jest",
1282-
"testing-library",
12831085
],
12841086
"rules": Object {
12851087
"import/no-namespace": "off",
@@ -1338,32 +1140,6 @@ Object {
13381140
"require-unicode-regexp": "off",
13391141
"sonarjs/no-duplicate-string": "off",
13401142
"sonarjs/no-identical-functions": "off",
1341-
"testing-library/await-async-query": "error",
1342-
"testing-library/await-async-utils": "error",
1343-
"testing-library/await-fire-event": "off",
1344-
"testing-library/consistent-data-testid": "off",
1345-
"testing-library/no-await-sync-events": "error",
1346-
"testing-library/no-await-sync-query": "error",
1347-
"testing-library/no-container": "warn",
1348-
"testing-library/no-debug": "error",
1349-
"testing-library/no-dom-import": "off",
1350-
"testing-library/no-manual-cleanup": "error",
1351-
"testing-library/no-node-access": "warn",
1352-
"testing-library/no-promise-in-fire-event": "error",
1353-
"testing-library/no-render-in-setup": "off",
1354-
"testing-library/no-unnecessary-act": "error",
1355-
"testing-library/no-wait-for-empty-callback": "error",
1356-
"testing-library/no-wait-for-multiple-assertions": "error",
1357-
"testing-library/no-wait-for-side-effects": "error",
1358-
"testing-library/no-wait-for-snapshot": "error",
1359-
"testing-library/prefer-explicit-assert": "warn",
1360-
"testing-library/prefer-find-by": "warn",
1361-
"testing-library/prefer-presence-queries": "error",
1362-
"testing-library/prefer-query-by-disappearance": "error",
1363-
"testing-library/prefer-screen-queries": "error",
1364-
"testing-library/prefer-user-event": "error",
1365-
"testing-library/prefer-wait-for": "warn",
1366-
"testing-library/render-result-naming-convention": "off",
13671143
},
13681144
"settings": Object {
13691145
"jest": Object {

src/overrides/jest.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ const createJestOverride = ({
5757
const plugins = [
5858
'jest',
5959
hasJestDom && 'jest-dom',
60-
hasTestingLibrary && 'testing-library',
60+
// hasTestingLibrary && 'testing-library',
6161
...customPlugins,
6262
].filter(Boolean);
6363

6464
const rules = {
6565
...jestRules,
6666
...(hasJestDom ? jestDomRules : null),
67-
...(hasTestingLibrary ? getTestingLibraryRules({ react }) : null),
67+
// ...(hasTestingLibrary ? getTestingLibraryRules({ react }) : null),
6868
...getTestOverrides({ typescript, react }),
6969
...customRules,
7070
};

0 commit comments

Comments
 (0)