How to use the enzyme-adapter-preact-pure.Adapter function in enzyme-adapter-preact-pure

To help you get started, we’ve selected a few enzyme-adapter-preact-pure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hypothesis / lms / lms / static / scripts / bootstrap.js View on Github external
// Expose sinon assertions.
sinon.assert.expose(assert, { prefix: null });

// Configure Enzyme for UI tests.
require('preact/debug');
import { patchPropTypes } from './frontend_apps/utils/prop-types';
import propTypes from 'prop-types';
patchPropTypes(propTypes);

import { configure } from 'enzyme';
import { Adapter } from 'enzyme-adapter-preact-pure';
configure({ adapter: new Adapter() });

// Register the same set of icons that is available in the app.
import { registerIcons } from './frontend_apps/components/SvgIcon';
import iconSet from './frontend_apps/icons';
registerIcons(iconSet);

enzyme-adapter-preact-pure

Enzyme adapter for Preact

MIT
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis

Popular enzyme-adapter-preact-pure functions

Similar packages