We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrote a test for your app like this:
it("shows HTML title that's passed from parent component", () => { render(<Header title="test-title" />); const header = screen.getByRole("heading"); expect(header.title).toBe("test-title"); })
returns the output:
● Header › shows HTML title that's passed from parent component expect(received).toBe(expected) // Object.is equality Expected: "test-title" Received: "Header" 25 | render(<Header title="test-title" />); 26 | const header = screen.getByRole("heading"); > 27 | expect(header.title).toBe("test-title"); | ^ 28 | }) 29 | }) 30 |
And this shows in the app: when you hover over either the Todo or the Followers heading, you get the title as Header.
Header
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Wrote a test for your app like this:
returns the output:
And this shows in the app: when you hover over either the Todo or the Followers heading, you get the title as
Header
.The text was updated successfully, but these errors were encountered: