-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
RN: Add watch mode for native tests #56788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've generally relied upon passing --watch
myself, but adding a dedicated script which aligns with the web test script makes sense to me. It will likely increase the visibility of this helpful feature. 👍🏻
I verified the native test scripts succeed as expected.
Size Change: 0 B Total Size: 1.72 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using a Windows machine, but I have confirmed that it also works in the following environment 👍
- Host OS (Window 11)
- WSL2 (Ubuntu 20.04.4 LTS)
Flaky tests detected in a3f9dfa. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7101900198
|
What?
While working on #56758 I noticed that the RN tests don't come with a watch mode. This PR introduces one.
Why?
So you'd be able to run React native tests in watch mode, rather than re-running them every time.
How?
We're adding a new script that runs
test:native
injest
--watch
mode.Testing Instructions
npm run test:native:watch
correctly runs React native tests in Jest watch mode.npm run test:native
still works well.Testing Instructions for Keyboard
None
Screenshots or screencast
None