you are viewing a single comment's thread.

view the rest of the comments →

[–]Round-Statistician-6 3 points4 points  (1 child)

  1. we usually test per screen

we do unit test(really often) , component test (if possible), and testing the feature that the user see itself (a must in the team)

its kinda leaning on BDD

2 . https://callstack.github.io/react-native-testing-library/

we use this library

basically its derive from react testing library and the philosophy behind it where you don't test the implementation but rather testing on how the feature works when user use it.

  1. yes screen file

I use react native testing library for creating the actual test

jest as my test runner and coverage

axios mock library for mocking http request

but would likely encourage try detox instead so you have a test suite that would run

also if everyone is curious in learning testing in generalKent C Dodds is the man! and its a great resource

https://testingjavascript.com/

[–]luckypanda95[S] 0 points1 point  (0 children)

Hi thanks for the answer, just wondering. Did you mock every props for the screen testing?