enzymejs/enzyme

No explanation what to do with configuration file

Open

#2,546 创建于 2021年11月17日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (19,979 star) (2,016 fork)batch import
docshelp wanted

描述

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 😃

贡献者指南