add some eslint rules for testing-library use in tests

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-11-16 09:32:58 +01:00
parent fd7ec12ec2
commit cb716004ef
31 changed files with 236 additions and 134 deletions
@@ -40,7 +40,7 @@ describe('Select', () => {
expect(rendered.getAllByText(testLabel)).toHaveLength(2);
});
describe('when the user hasn`t clicked on it', () => {
describe("when the user hasn't clicked on it", () => {
it('should only render the current select item', async () => {
const rendered = await renderInTestApp(
<SelectComponent