enzyme-adapter-preact

0.2.0 • Public • Published

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() });

Readme

Keywords

none

Package Sidebar

Install

npm i enzyme-adapter-preact

Weekly Downloads

15

Version

0.2.0

License

MIT

Unpacked Size

18.1 kB

Total Files

6

Last publish

Collaborators

  • aweary
  • awinogradov
  • verybigman