We suggest using yarn for installations.
yarn add jasmine-enzyme --dev
But npm works too!
$ npm install jasmine-enzyme --save-dev
For Jasmine, you'll need to call jasmineEnzyme()
in any before
method due to the way jasmine's plugin
system works.
import jasmineEnzyme from 'jasmine-enzyme';
describe('test', () => {
beforeEach(() => {
jasmineEnzyme();
});
// tests
});