How to use @wojtekmaj/enzyme-adapter-react-17 - 3 common examples

To help you get started, we’ve selected a few @wojtekmaj/enzyme-adapter-react-17 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 lyft / clutch / frontend / packages / tools / jest.setup.js View on Github external
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import Enzyme from "enzyme";

Enzyme.configure({ adapter: new Adapter() });

HTMLCanvasElement.prototype.getContext = () => {
  // return whatever getContext has to return
};
github VNG-Realisatie / nlx / directory-ui / src / setupTests.js View on Github external
// Copyright © VNG Realisatie 2020
// Licensed under the EUPL
//

import { configure } from 'enzyme'
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'

configure({ adapter: new Adapter() })
github VNG-Realisatie / nlx / insight-ui / src / setupTests.js View on Github external
// Copyright © VNG Realisatie 2020
// Licensed under the EUPL
//

import { configure } from 'enzyme'
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'

configure({ adapter: new Adapter() })

@wojtekmaj/enzyme-adapter-react-17

JavaScript Testing utilities for React

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular @wojtekmaj/enzyme-adapter-react-17 functions