{"version":3,"sources":["__tests__/cli.test.ts"],"names":[],"mappings":"","file":"cli.test.d.ts","sourcesContent":["import cli from '../cli';\n\n\ndescribe('This is the tests for the workspaces command', () => {\n  let mockLog: any = null;\n  let mockError: any = null;\n  let mockExit: any = null;\n  beforeAll(() => {\n    mockError = jest.spyOn(global.console, 'error').mockImplementation();\n    mockLog = jest.spyOn(global.console, 'log').mockImplementation();\n    mockExit = jest.spyOn(process, 'exit').mockImplementation();\n  });\n\n  afterAll(() => {\n    mockLog.mockRestore();\n    mockExit.mockRestore();\n    mockError.mockRestore();\n  });\n\n\n  test('cli since master', async () => {\n    try {\n      await cli(['workspaces', '--since=master']);\n    } catch (error) {\n      expect(error).toBeDefined();\n    }\n  });\n\n  test('cli since master', async () => {\n    try {\n      await cli(['run', 'test', '--since=master']);\n    } catch (error) {\n      expect(error).toBeDefined();\n    }\n  });\n\n  test('cli since master', async () => {\n    await cli(['ororo']);\n    expect(mockExit).toHaveBeenCalledWith(0);\n  });\n});\n"]}