RN: Add watch mode for native tests - #56788
Conversation
dcalhoun
left a comment
There was a problem hiding this comment.
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
|
t-hamano
left a comment
There was a problem hiding this comment.
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:nativeinjest--watchmode.Testing Instructions
npm run test:native:watchcorrectly runs React native tests in Jest watch mode.npm run test:nativestill works well.Testing Instructions for Keyboard
None
Screenshots or screencast
None