Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/tests / src / jest / enzyme.ts
Size: Mime:
/**
 * @see https://github.com/wmonk/create-react-app-typescript/issues/185
 */
import { configure } from 'enzyme'
import * as adapter from 'enzyme-adapter-react-16'

const Adapter = ((adapter as any).default || adapter) as any

try {
  configure({ adapter: new Adapter() })
} catch (yarnWorkspaceException) {
  console.warn('could not setup enzyme')
  // console.error(yarnWorkspaceException)
}