From 2cc18adbb59ca54ffc2986058f9856266a1d4af5 Mon Sep 17 00:00:00 2001 From: UnleashedMind Date: Sat, 17 Mar 2018 11:33:50 -0700 Subject: [PATCH] fix unit test --- __tests__/lib/init-steps/s61-on-failure.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/lib/init-steps/s61-on-failure.test.js b/__tests__/lib/init-steps/s61-on-failure.test.js index 15cf8a8..7000be2 100644 --- a/__tests__/lib/init-steps/s61-on-failure.test.js +++ b/__tests__/lib/init-steps/s61-on-failure.test.js @@ -45,6 +45,7 @@ describe('s61 on failure', () => { beforeAll(() => { global.console = {log: jest.fn()} process.cwd = jest.fn(()=>{ return projectPath }) + process.exit = jest.fn((code)=>{return code}) fs.__setMockFiles(MOCK_FILE_INFO) dfOps.readJsonFile = jest.fn((path)=>{