我有玩笑+酶的設置來測試我的陣營應用程序,我用早午餐來構建應用程序。當我運行的早午餐,我得到了以下錯誤 Processing of node_modules/enzyme/build/react-compat.js failed. Error: Could not load module 'react/addons' from '/home/Project/node_modules/enzyme/
我有使用Jest with Enzyme進行打字稿測試。測試工作完美,但是當我添加一個組件,它給了我一個Unterminated regular expression錯誤 import {} from 'jasmine';
import {shallow} from 'enzyme';
import {Show, Hide} from '../components/show_hide';