React Router (v3)
Introduction
Installation
$> yarn add -D enzyme-context enzyme-context-react-router-3import { createMount, createShallow } from 'enzyme-context'; import { routerContext } from 'enzyme-context-react-router-3'; const plugins = { history: routerContext(), }; export const mount = createMount(plugins); export const shallow = createShallow(plugins);
Usage
Configuration API
routerContext() => EnzymePlugin
routerContext() => EnzymePluginReturns
Example:
Mount/Shallow API
Last updated
Was this helpful?