enzyme-adapter-preact
v0.2.0
Published
A Preact adapater for the Enzyme testing utility
Downloads
2,840
Readme
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() });