diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8443af300048ad9ae31ea808c28a063c9a24619d..580ca99052d4ee522aee26fc787db9ab3bdac0fd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,6 +12,7 @@ pr: variables: YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn CI: true + Agent.Source.Git.ShallowFetchDepth: 1 jobs: - job: 'Windows' @@ -52,7 +53,7 @@ jobs: nodeVersion: '10.x' pythonVersion: '3.7' pool: - vmImage: macOS-10.14 + vmImage: macOS-10.13 steps: - template: .azure/steps.yml diff --git a/test/datasource/orb.spec.ts b/test/datasource/orb.spec.ts index 4db9ad0bf93cb1ba348a386e09fe77d8210c226f..6e3227cc9b555e4d43d1627637422c21d539e1ae 100644 --- a/test/datasource/orb.spec.ts +++ b/test/datasource/orb.spec.ts @@ -2,6 +2,9 @@ import _got from '../../lib/util/got'; import * as datasource from '../../lib/datasource'; jest.mock('../../lib/util/got'); +jest.mock('simple-git', () => { + throw new Error('Test'); +}); const got: any = _got;