Skip to content

Commit

Permalink
speed up test by stubbing (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez authored and khanayan123 committed Jan 4, 2024
1 parent b644772 commit b4b2b3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dd-trace/test/plugins/util/test-environment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const fs = require('fs')
const path = require('path')

const proxyquire = require('proxyquire')
const sanitizedExecStub = sinon.stub().returns('')
const execFileSyncStub = sinon.stub().returns('')

const { getCIMetadata } = require('../../../src/plugins/util/ci')
const { CI_ENV_VARS, CI_NODE_LABELS } = require('../../../src/plugins/util/tags')

const { getGitMetadata } = proxyquire('../../../src/plugins/util/git', {
'./exec': {
'sanitizedExec': sanitizedExecStub
'child_process': {
'execFileSync': execFileSyncStub
}
})
const { getTestEnvironmentMetadata } = proxyquire('../../../src/plugins/util/test', {
Expand Down

0 comments on commit b4b2b3e

Please sign in to comment.