mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
6767369d48
- Update all associated dependencies - Very minimal changes to components - Extensive refactoring for broken tests Closes #1978
14 lines
277 B
JavaScript
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}`);
|