Skip to content

Setting up the testing

Andrew Wood edited this page Oct 15, 2018 · 2 revisions

Setup package.json

Under scripts, add "test":"jest". At the top level, add the jest config instructions. {
"name":"projectname",
"jest":{
"preset": "react-native",
"testEnvironment": "jsdom",
"setupFiles": [
"./__test__/setupTests.js"
],
"verbose": true
}, ..}