@cmflow/cli 0.67.2 → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/cli",
3
- "version": "0.67.2",
3
+ "version": "0.68.0",
4
4
  "description": "An awesome Git Flow",
5
5
  "author": "camfou",
6
6
  "license": "MIT",
@@ -57,6 +57,7 @@ export async function runCommand (klass, commander) {
57
57
  // eslint-disable-next-line no-console
58
58
  console.error(String(er.stack).replace(String(er), ''))
59
59
  }
60
+ process.exit(-1)
60
61
  }
61
62
  }
62
63
 
@@ -52,6 +52,7 @@ describe('runCommand', () => {
52
52
  }
53
53
 
54
54
  jest.spyOn(console, 'error').mockReturnValue(undefined)
55
+ jest.spyOn(process, 'exit').mockImplementation(() => {})
55
56
 
56
57
  await runCommand(Cmd, {
57
58
  prop: '1'
@@ -59,5 +60,6 @@ describe('runCommand', () => {
59
60
 
60
61
  // eslint-disable-next-line no-console
61
62
  expect(console.error).toHaveBeenCalled()
63
+ expect(process.exit).toHaveBeenCalledWith(-1)
62
64
  })
63
65
  })