Skip to content

Instantly share code, notes, and snippets.

@trentm

trentm/test.log Secret

Created May 30, 2024 18:28
Show Gist options
  • Save trentm/0ac028d3d343ffb83a7398540c3a05ae to your computer and use it in GitHub Desktop.
Save trentm/0ac028d3d343ffb83a7398540c3a05ae to your computer and use it in GitHub Desktop.
[11:26:26 trentm@peach:~/tm/opentelemetry-js-contrib10/plugins/web/opentelemetry-instrumentation-user-interaction (git:replace-karma-user-interaction rv:130)]
% npm run test:browser
> @opentelemetry/instrumentation-user-interaction@0.36.0 test:browser
> wtr --coverage
test/userInteraction.nozone.test.ts:
❌ TypeError: this._wrap is not a function
at XMLHttpRequestInstrumentation.enable (../../../node_modules/@opentelemetry/instrumentation-xml-http-request/src/xhr.ts:527:9)
at XMLHttpRequestInstrumentation.InstrumentationBase [as constructor] (../../../node_modules/@opentelemetry/instrumentation/src/platform/browser/instrumentation.ts:35:11)
at new XMLHttpRequestInstrumentation (../../../node_modules/@opentelemetry/instrumentation-xml-http-request/src/xhr.ts:92:4)
at registerTestInstrumentations (test/userInteraction.nozone.test.ts:72:10)
at Ka.<anonymous> (test/userInteraction.nozone.test.ts:102:6)
test/userInteraction.test.ts:
❌ TypeError: this._wrap is not a function
at UserInteractionInstrumentation.enable (src/instrumentation.ts:600:11)
at new InstrumentationBase (../../../node_modules/@opentelemetry/instrumentation/src/platform/browser/instrumentation.ts:35:11)
at new UserInteractionInstrumentation (src/instrumentation.ts:71:4)
at registerTestInstrumentations (test/userInteraction.test.ts:69:39)
at Ka.<anonymous> (test/userInteraction.test.ts:111:6)
❌ TypeError: Cannot read properties of undefined (reading 'disable')
at Ka.<anonymous> (test/userInteraction.test.ts:124:37)
Chrome: |██████████████████████████████| 3/3 test files | 0 passed, 42 failed
Code coverage: 48 %
View full coverage report at coverage/lcov-report/index.html
Finished running tests in 12.4s with 42 failed tests.
npm ERR! Lifecycle script `test:browser` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @opentelemetry/instrumentation-user-interaction@0.36.0
npm ERR! at location: /Users/trentm/tm/opentelemetry-js-contrib10/plugins/web/opentelemetry-instrumentation-user-interaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment