Fakultas Ilmu Komputer UI

Skip to content

Setup Jest files and Enable Coverage

Ahmad Izzudin Alifyandra requested to merge setup-jest into master


Fix failing test on RegisterScreen and add setupfile to easily add mocks. Enables code coverage too in ./jest/coverage/*

Added packages:

  • redux-mock-store (dev)
  • jest-expo (dev)

How to test:

Run yarn test and see coverage folder in ./jest. Testing components that have a redux hook and navigation useNavigation() hook also works now.

Tested on:

  • iOS
  • Android

Merge request reports