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.

11 lines (8 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function generalImports(componentPath) { return "\n import React from \"react\";\n import { mount } from \"enzyme\";\n import { MemoryRouter } from \"react-router-dom\";\n import Component from \"".concat(componentPath, "\";\n "); } exports["default"] = generalImports;