Socket
Book a DemoInstallSign in
Socket

enzyme-adapter-inferno

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enzyme-adapter-inferno

Inferno enzyme adapter

latest
npmnpm
Version
1.3.1
Version published
Weekly downloads
7
-65%
Maintainers
1
Weekly downloads
 
Created
Source

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'})

FAQs

Package last updated on 03 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts