Relative Content

Tag Archive for react-nativejestjs

getting unable to find elemen in jest

Am using react native , and am having a component, inside that component am having two elements icons and text, so , when i run test for text then it is working fine, and not working for that icons.

React native application jest coverage issue

I am running react native application. we are using jenkins dynamic agents to perform all the stages in job. i got one react native image from dockerhub and that supports for application dependencies. Using that image, i am trying to run
npm install
npm run test:ci
this test:ci contains below script under package.json
“test:ci”: “jest –ci –runInBand –coverage || true”
Not only we tried more scripts, but pipeline is unable to get the coverage i am getting error like
**Aborted(dumped) **
i tried to debug this with diff diff npm commands sometimes after few test cases it getting Killed
sometimes it proceed with next sonar stage without generating the coverage folder its not ran all test cases