fleet/frontend/test/loaderMock.js
Zachary Wasserman 6767369d48
Upgrade React to version 16 (#1983)
- Update all associated dependencies
- Very minimal changes to components
- Extensive refactoring for broken tests

Closes #1978
2019-01-14 13:45:28 -08:00

14 lines
277 B
JavaScript

import requireHacker from 'require-hacker';
const fakeComponentString = `
React = require('react');
class FakeComponent extends React.Component {
render () {
return null;
}
}
`;
requireHacker.hook('svg', () => `module.exports = ${fakeComponentString}`);