JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circle
docs
src
test
.babelrc
.editorconfig
.eslintrc
.gitignore
.nvmrc
LICENSE
README.md
package-lock.json
package.json

README.md

enzyme-adapter-inferno

Adapter to configure enzyme to test Inferno components

Still in development ⚠️

This adapter is missing features:

  • no shallow rendering
  • no support for context
  • no support for attachTo

Installation

npm install --save-dev enzyme-adapter-inferno

Usage

Before you run tests, configure enzyme with the adapter:

import { configure } from 'enzyme'
import InfernoEnzymeAdapter from 'enzyme-adapter-inferno'

configure({ adapter: new InfernoEnzymeAdapter() })

Then use enzyme as you would with a React component:

import InfernoComponent from 'inferno-component'
import { mount } from 'enzyme'

const wrapper = mount(Component)
wrapper.setProps({someProp: 'value'})