Skip to content

Commit b7bad36

Browse files
fix: don't patch esm loading in http instrumentation test
1 parent 58f9655 commit b7bad36

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

experimental/packages/opentelemetry-instrumentation-http/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"compile": "tsc --build",
1111
"clean": "tsc --build --clean",
1212
"test:cjs": "nyc mocha test/**/*.test.ts",
13-
"test:esm": "nyc node --experimental-loader=@opentelemetry/instrumentation/hook.mjs ../../../node_modules/mocha/bin/mocha 'test/**/*.test.mjs'",
13+
"test:esm": "cross-env MOCHA_DONT_PATCH_ESM=true nyc node --experimental-loader=@opentelemetry/instrumentation/hook.mjs ../../../node_modules/mocha/bin/mocha 'test/**/*.test.mjs'",
1414
"test": "npm run test:cjs && npm run test:esm",
1515
"tdd": "npm run test -- --watch-extensions ts --watch",
1616
"lint": "eslint . --ext .ts",
@@ -60,6 +60,7 @@
6060
"@types/superagent": "8.1.9",
6161
"axios": "1.8.4",
6262
"cross-var": "1.1.0",
63+
"cross-env": "6.0.3",
6364
"lerna": "6.6.2",
6465
"mocha": "11.1.0",
6566
"nock": "13.5.6",

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)