From 71a5288dea5df31c6a492ce22ff8169552548d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Antonio=20Fern=C3=A1ndez=20de=20Alba?= Date: Wed, 14 Jun 2023 14:36:45 +0200 Subject: [PATCH] [ci-visibility] Fix agentless exporter test (#3241) --- .../test/ci-visibility/exporters/agentless/exporter.spec.js | 2 +- .../test/ci-visibility/exporters/ci-visibility-exporter.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()