Skip to content

aweary/enzyme-adapter-preact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •