Skip to content

Commit

Permalink
[ci-app] Fix jest Test Suite (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Aug 30, 2021
1 parent 8999d7a commit effb065
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/datadog-plugin-jest/test/circus.spec.js
Expand Up @@ -38,7 +38,10 @@ describe('Plugin', () => {
tracer = require('../../dd-trace')
return agent.load(['jest', 'fs', 'http']).then(() => {
DatadogJestEnvironment = require(`../../../versions/${moduleName}@${version}`).get()
datadogJestEnv = new DatadogJestEnvironment({ rootDir: BUILD_SOURCE_ROOT }, { testPath: TEST_SUITE })
datadogJestEnv = new DatadogJestEnvironment({
rootDir: BUILD_SOURCE_ROOT,
testEnvironmentOptions: { userAgent: null }
}, { testPath: TEST_SUITE })
// TODO: avoid mocking expect once we instrument the runner instead of the environment
datadogJestEnv.getVmContext = () => ({
expect: {
Expand Down

0 comments on commit effb065

Please sign in to comment.