Skip to content

Commit 4ab2305

Browse files
author
Mateus Felix
committed
test(no-container): add custom render function
1 parent 497a5b6 commit 4ab2305

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/lib/rules/no-container.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,21 @@ ruleTester.run(RULE_NAME, rule, {
6262
},
6363
],
6464
},
65+
{
66+
code: `
67+
const { container } = renderWithRedux(<Example />)
68+
container.querySelector()
69+
`,
70+
options: [
71+
{
72+
renderFunctions: ['renderWithRedux'],
73+
},
74+
],
75+
errors: [
76+
{
77+
messageId: 'noContainer',
78+
},
79+
],
80+
},
6581
],
6682
});

0 commit comments

Comments
 (0)