runtipi/packages/system-api/__mocks__/child_process.ts
2022-06-10 07:05:46 +00:00

9 lines
266 B
TypeScript

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