runtipi/packages/system-api/__mocks__/child_process.ts
Nicolas Meienberger 20b32526ef 🤖 Tests: AppsService
2022-05-09 22:52:00 +02:00

9 lines
263 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;