我使用@ test -library/react-native来测试我的RN应用程序。当我运行yarn测试时,出现以下错误。@testing-library/react-native should have "jest-preset.js" or "jest-preset.json" file at the root.我的应用程序使用typescript。test": &qu
我正在尝试用我的react原生应用来设置jest。我创建了一个简单的测试用例,在运行npm test时,我得到了以下错误 ● Test suite failed to run我试过使用flow、巴别塔预设和transform-flow-strip-types,但都没有用。下面是我在package.json中的jest配置 "preset":