UNPKG

react-unit-test-generator

Version:

react-unit-test-generator is a helper for writing unit tests for React apps. Its main goal is to automatically generate a suite of the most common test cases for a given component.

10 lines (8 loc) 278 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = mountComponent; function mountComponent(props) { return "component = mount(\n <MemoryRouter>\n <Component ".concat(props, " />\n </MemoryRouter>\n );"); }