enzymejs/enzyme

No explanation what to do with configuration file

開放

#2,546 建立於 2021年11月17日

 (5 則留言) (0 個反應) (0 位負責人)JavaScript (1,970 個分叉)batch import
docshelp wanted

倉庫指標

星標
 (19,828 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

It is not a big issue, however, it is a bit frustrating that I can not find in the "Installation" section what is the best way and how to implement configured enzyme instance in my project:

import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

If you can give an idea how to handle it it would be nice 😃

貢獻者指南