I’ve recently been trying to get tests working on my CRNA project. The only test we have is the one that comes with it out of the box (App.test.js) and as I understand it that should just work when running
yarn test. This isn’t the case, and looking into it further it turned out Jest wasn’t picking up the preset or correctly transpiling the code, so it’d then choke on
import statements which Node doesn’t understand.
After some more investigation, I found that both the
babel-preset-expo projects have recently been archived on Github. Are these now deprecated, and if so, what is replacing them? I can’t find any mention as to why they’ve been archived, or any updated documentation indicating how to set up testing in an Expo/CRNA project.