diff --git a/packages/dd-trace/test/ci-visibility/exporters/agentless/exporter.spec.js b/packages/dd-trace/test/ci-visibility/exporters/agentless/exporter.spec.js index b7c4e9dbada..d00f3eaaf5c 100644 --- a/packages/dd-trace/test/ci-visibility/exporters/agentless/exporter.spec.js +++ b/packages/dd-trace/test/ci-visibility/exporters/agentless/exporter.spec.js @@ -14,7 +14,7 @@ describe('CI Visibility Agentless Exporter', () => { beforeEach(() => { // to make sure `isShallowRepository` in `git.js` returns false - sinon.stub(cp, 'execSync').returns('false') + sinon.stub(cp, 'execFileSync').returns('false') nock.cleanAll() }) afterEach(() => { diff --git a/packages/dd-trace/test/ci-visibility/exporters/ci-visibility-exporter.spec.js b/packages/dd-trace/test/ci-visibility/exporters/ci-visibility-exporter.spec.js index 9c9e98b31bb..84958a67a36 100644 --- a/packages/dd-trace/test/ci-visibility/exporters/ci-visibility-exporter.spec.js +++ b/packages/dd-trace/test/ci-visibility/exporters/ci-visibility-exporter.spec.js @@ -12,7 +12,7 @@ describe('CI Visibility Exporter', () => { beforeEach(() => { // to make sure `isShallowRepository` in `git.js` returns false - sinon.stub(cp, 'execSync').returns('false') + sinon.stub(cp, 'execFileSync').returns('false') process.env.DD_API_KEY = '1' process.env.DD_APP_KEY = '1' nock.cleanAll()