Skip to content

Commit 74a17fa

Browse files
committed
test: add test
1 parent c1c93ff commit 74a17fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/lib/rules/no-node-access.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ const SUPPORTED_TESTING_FRAMEWORKS = [
2323
ruleTester.run(RULE_NAME, rule, {
2424
valid: SUPPORTED_TESTING_FRAMEWORKS.flatMap<RuleValidTestCase>(
2525
(testingFramework) => [
26+
{
27+
// valid because no Testing Library module is imported
28+
code: `
29+
// case: custom module set but not imported using ${testingFramework} (aggressive reporting limited)
30+
const body = document.body
31+
32+
body.click();
33+
`,
34+
},
2635
{
2736
code: `
2837
import { screen } from '${testingFramework}';

0 commit comments

Comments
 (0)