Skip to content

Commit 49b79ad

Browse files
test: refactor @testing-library/dom tests (#583)
1 parent df3dc0c commit 49b79ad

9 files changed

+9
-0
lines changed

tests/lib/rules/await-async-query.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { createRuleTester } from '../test-utils';
1212
const ruleTester = createRuleTester();
1313

1414
const SUPPORTED_TESTING_FRAMEWORKS = [
15+
'@testing-library/dom',
1516
'@testing-library/react',
1617
'@marko/testing-library',
1718
];

tests/lib/rules/no-await-sync-query.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { createRuleTester } from '../test-utils';
88
const ruleTester = createRuleTester();
99

1010
const SUPPORTED_TESTING_FRAMEWORKS = [
11+
'@testing-library/dom',
1112
'@testing-library/react',
1213
'@marko/testing-library',
1314
];

tests/lib/rules/no-promise-in-fire-event.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const ruleTester = createRuleTester();
55

66
const SUPPORTED_TESTING_FRAMEWORKS = [
77
'@testing-library/foo',
8+
'@testing-library/dom',
89
'@marko/testing-library',
910
];
1011

tests/lib/rules/no-wait-for-empty-callback.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const ruleTester = createRuleTester();
55

66
const ALL_WAIT_METHODS = ['waitFor', 'waitForElementToBeRemoved'];
77
const SUPPORTED_TESTING_FRAMEWORKS = [
8+
'@testing-library/dom',
89
'@testing-library/react',
910
'@marko/testing-library',
1011
];

tests/lib/rules/no-wait-for-multiple-assertions.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { createRuleTester } from '../test-utils';
66
const ruleTester = createRuleTester();
77

88
const SUPPORTED_TESTING_FRAMEWORKS = [
9+
'@testing-library/dom',
910
'@testing-library/react',
1011
'@marko/testing-library',
1112
];

tests/lib/rules/no-wait-for-side-effects.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { createRuleTester } from '../test-utils';
44
const ruleTester = createRuleTester();
55

66
const SUPPORTED_TESTING_FRAMEWORKS = [
7+
'@testing-library/dom',
78
'@testing-library/react',
89
'@marko/testing-library',
910
];

tests/lib/rules/prefer-find-by.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ruleTester = createRuleTester();
1616

1717
const SUPPORTED_TESTING_FRAMEWORKS = [
1818
'@testing-library/foo',
19+
'@testing-library/dom',
1920
'@marko/testing-library',
2021
];
2122

tests/lib/rules/prefer-query-by-disappearance.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { createRuleTester } from '../test-utils';
66
const ruleTester = createRuleTester();
77

88
const SUPPORTED_TESTING_FRAMEWORKS = [
9+
'@testing-library/dom',
910
'@testing-library/react',
1011
'@marko/testing-library',
1112
];

tests/lib/rules/prefer-screen-queries.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { createRuleTester } from '../test-utils';
99
const ruleTester = createRuleTester();
1010

1111
const SUPPORTED_TESTING_FRAMEWORKS = [
12+
'@testing-library/dom',
1213
'@testing-library/react',
1314
'@marko/testing-library',
1415
];

0 commit comments

Comments
 (0)