child_process.ts 266 B

123456789
  1. const childProcess: { execFile: typeof execFile } = jest.genMockFromModule('child_process');
  2. const execFile = (_path: string, _args: string[], _thing: any, callback: Function) => {
  3. callback();
  4. };
  5. childProcess.execFile = execFile;
  6. module.exports = childProcess;