효소에서는 어댑터가 구성되어야 합니다. create-react-app을 사용하여 새로운 React 어플리케이션을 만들었는데, 어플리케이션에서 작성한 "MessageBox"라는 컴포넌트에 유닛 테스트를 작성하려고 했습니다.이것은 제가 작성한 단위 테스트입니다. import MessageBox from "../MessageBox"; import { shallow } from 'enzyme'; import React from 'react'; test('message box', () => { const app = {setState: jest.fn()}; const wrapper = shallow(); wrapper.find('button').at(0).simulate('click'); expect(app.set..