Snapshot Test Cases by JEST now included with NativeBase

Shruti Kaushik
The NativeBase v2.0 Blog [ Deprecated ]
1 min readJan 19, 2017
NativeBase now includes Jest

We have had requests of test cases and it had been on our roadmap for quite some time. In fact, many people at our recent React Native meetup asked us about it.

So brace yourselves, ‘cos we have finally included Jest’s Snapshot Testing for React Native apps in NativeBase.

Credit: goofygifs.com

For instance, here’s how the test cases for header in Android is,

View the test cases for other components on the NativeBase Github repo and try them out right away.

In case you missed any, here are our other recent announcements,

Keep up with all our updates by following our blog. Thanks for reading. :)

--

--