OperationCode/front-end

View on GitHub
test-utils/createComponentInstance.js

Summary

Maintainability
A
0 mins
Test Coverage
import TestRenderer from 'react-test-renderer';

export default function createComponentInstance(Component) {
  const root = TestRenderer.create(Component);
  return root.getInstance();
}