diff --git a/experimental/packages/opentelemetry-instrumentation/test/node/RequireInTheMiddleSingleton.test.ts b/experimental/packages/opentelemetry-instrumentation/test/node/RequireInTheMiddleSingleton.test.ts index 8c1be21446..ede0656ebc 100644 --- a/experimental/packages/opentelemetry-instrumentation/test/node/RequireInTheMiddleSingleton.test.ts +++ b/experimental/packages/opentelemetry-instrumentation/test/node/RequireInTheMiddleSingleton.test.ts @@ -58,6 +58,7 @@ describe('RequireInTheMiddleSingleton', () => { onRequireCpxStub ); requireInTheMiddleSingleton.register( + 'test-non-core-module/lib/copy-sync.js', onRequireCpxLibStub ); diff --git a/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/index.js b/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/index.js new file mode 100644 index 0000000000..8fc30cc603 --- /dev/null +++ b/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/index.js @@ -0,0 +1,4 @@ +module.exports = { + copy: require('./copy-sync') + }; + \ No newline at end of file diff --git a/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/copy-sync.js b/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/copy-sync.js index 97da7acc8c..75a151d1b0 100644 --- a/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/copy-sync.js +++ b/experimental/packages/opentelemetry-instrumentation/test/node/node_modules/test-non-core-module/lib/copy-sync.js @@ -1,3 +1,4 @@ module.exports = function copySync() { console.log('Mock copySync called'); }; +