enzymejs/enzyme

No explanation what to do with configuration file

Ouverte

#2 546 ouverte le 17 nov. 2021

 (5 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 970 forks)batch import
docshelp wanted

Métriques du dépôt

Stars
 (19 829 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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 😃

Guide contributeur