Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit f45952f

Browse files
committed
fix(tests): work around type check failures
1 parent 7bcb4d5 commit f45952f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/plugins/test-trace-http2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ maybeSkipHttp2('Trace Agent integration with http2', () => {
8181
});
8282

8383
it('should patch the necessary functions', () => {
84-
assert.strictEqual(http2.connect['__wrapped'], true);
84+
assert.strictEqual((http2 as any).connect['__wrapped'], true);
8585
});
8686

8787
it('should accurately measure request time', done => {

test/trace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function get(): PluginTypes.Tracer {
120120
}
121121

122122
export function setLoggerForTest(impl?: typeof logger.Logger) {
123-
if (logger.Logger.__wrapped) {
123+
if ((logger.Logger as any).__wrapped) {
124124
shimmer.unwrap(logger, 'Logger');
125125
}
126126
if (impl) {

0 commit comments

Comments
 (0)