We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1c93ff commit 74a17faCopy full SHA for 74a17fa
tests/lib/rules/no-node-access.test.ts
@@ -23,6 +23,15 @@ const SUPPORTED_TESTING_FRAMEWORKS = [
23
ruleTester.run(RULE_NAME, rule, {
24
valid: SUPPORTED_TESTING_FRAMEWORKS.flatMap<RuleValidTestCase>(
25
(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
+ },
35
{
36
code: `
37
import { screen } from '${testingFramework}';
0 commit comments