Skip to content
New issue

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

docs: add missing assignment in render.mdx #1649

Merged
merged 3 commits into from
Aug 25, 2024

Conversation

vonovak
Copy link
Contributor

@vonovak vonovak commented Aug 23, 2024

Summary

I believe there is a missing assignment in the docs.

Test plan

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.46%. Comparing base (a282d1e) to head (8068e89).
Report is 54 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1649      +/-   ##
==========================================
- Coverage   95.51%   95.46%   -0.06%     
==========================================
  Files          99      101       +2     
  Lines        5400     5508     +108     
  Branches      857      880      +23     
==========================================
+ Hits         5158     5258     +100     
- Misses        242      250       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 13 to 16
import { render } from '@testing-library/react-native';

test('basic test', () => {
render(<MyApp />);
const screen = render(<MyApp />);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of capturing render output we recommend using screen object exported by RNTL, so rather than update this line, we should add screen to the import above.

@mdjastrzebski mdjastrzebski merged commit 239e046 into callstack:main Aug 25, 2024
9 checks passed
@vonovak vonovak deleted the patch-1 branch August 25, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants