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
In the section Testing conventions: https://www.reactnative.guide/7-testing/7.1-jest-setup.html it mentions: "In each expect, we first mention the function name which is to be tested."
Summary I believe this is referenced incorrectly because expect typically accepts the function to be tested.
expect
Expected:
describe
it
test
Actual
I would've submitted a PR for this but I'm not sure of the ideal format.
Suggestion:
describe('counter', () => { it('should increment the passed value', () => { expect(counter(1)).toBe(2); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the section Testing conventions: https://www.reactnative.guide/7-testing/7.1-jest-setup.html it mentions:
"In each expect, we first mention the function name which is to be tested."
Summary
I believe this is referenced incorrectly because
expect
typically accepts the function to be tested.Expected:
describe
,it
ortest
, andexpect
describe
andit
ortest
Actual
expect
it usesdescribe
I would've submitted a PR for this but I'm not sure of the ideal format.
Suggestion:
The text was updated successfully, but these errors were encountered: