-
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
[RNMobile] Moving native tests to gutenberg repo #15589
[RNMobile] Moving native tests to gutenberg repo #15589
Conversation
To be able to use the same structure already in place.
expect( component.exists() ).toBe( true ); | ||
} ); | ||
|
||
it( 'splits empty block on Enter', () => { |
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.
Minor nitpick, specially since I think this is just a file move, but since there's no actually Enter
keypress involved in this test, I wouldn't mention it on the test name
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.
Nice catch! Removed the reference to "on Enter".
* Add unit test for willTrimSpaces. * Fix willTripSpaces to report false for no outer spaces on styled text. * Ignore gutenberg-mobile unit tests in gutenberg test pipeline * Revert "Fix willTripSpaces to report false for no outer spaces on styled text." This reverts commit 0731689. Upstream changes make this implementation no longer necessary. * Fix lint issues * Import RichText without native extension * Remove stubs from rich-text __mocks__
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.
Looks good to me 👏
gutenberg-mobile
side PR: wordpress-mobile/gutenberg-mobile#977This PR moves some of the
mobile-gutenberg
test suits to thegutenberg
repo.Added an exception to
test/unit/jest.config.js
so these tests are not run bynpm run test-unit
.As a intermediate step, these tests will continue to be run only from
gutenberg-mobile
checkout viayarn test
.On a next step we plan to integrate these mobile tests to the
gutenberg
tool-chain.To test:
gutenberg
runrpm run test-unit