Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Typescript Error: findAllByTestId #35

@AlexandreMPDias

Description

@AlexandreMPDias

Relevant code or config:

	it('should render the typed password', () => {
		let login = render(<Login />);
		const emailField = login.findAllByTestId('login_email');
	//TODO
	});

What happened:

I get a typescript error saying: "login_email" is not compatible with type 'MatcherOptions | undefined'.

Issue

I read the source code... and the example in the documentations, and I think that the right type for this function's argument should be Match, as declared in matches.d.ts

Workaround

If I write 'login_email' as any, it works normally

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions