Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 558 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 558 Bytes

enzyme-adapter-preact

Enzyme adapter for Preact

Installation and usage

Install adapter with npm install enzyme-adapter-preact --save-dev or yarn add enzyme-adapter-preact --dev. Use it like this in ES6 projects:

import Enzyme from 'enzyme';
import { Adapter } from 'enzyme-adapter-preact';

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

or like this in CommonJS projects:

const Enzyme = require('enzyme');
const { Adapter } = require('enzyme-adapter-preact');

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