Skip to content

Commit db38d9f

Browse files
committed
test: add test
1 parent c4a884b commit db38d9f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,20 @@ ruleTester.run(RULE_NAME, rule, {
227227
228228
const buttonText = screen.getByText('submit');
229229
fe.click(buttonText);
230+
`,
231+
},
232+
{
233+
code: `
234+
// case: custom module set but not imported using ${testingFramework} (aggressive reporting limited)
235+
import { screen } from '${testingFramework}';
236+
237+
const ui = {
238+
select: screen.getByRole('combobox', {name: 'Test label'}),
239+
};
240+
test('...', () => {
241+
const select = ui.select.get();
242+
expect(select).toHaveClass(selectClasses.select);
243+
});
230244
`,
231245
},
232246
]

0 commit comments

Comments
 (0)