Skip to content

Commit 4ee2499

Browse files
committed
test(NODE-7280): use mongodb native driver public interface
1 parent dfc5a0e commit 4ee2499

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/integration/node-specific/resource_tracking_script_builder.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ import { AssertionError, expect } from 'chai';
99
import type * as timers from 'timers';
1010
import { parseSnapshot } from 'v8-heapsnapshot';
1111

12-
import { type MongoClient } from '../../../src';
12+
import type * as mongodb from '../../../src';
1313
import { type TestConfiguration } from '../../tools/runner/config';
1414
import { type sleep } from '../../tools/utils';
1515

1616
export type ResourceTestFunction = HeapResourceTestFunction | ProcessResourceTestFunction;
1717

1818
export type HeapResourceTestFunction = (options: {
19-
MongoClient: typeof MongoClient;
19+
MongoClient: typeof mongodb.MongoClient;
2020
uri: string;
2121
iteration: number;
2222
}) => Promise<void>;
2323

2424
export type ProcessResourceTestFunction = (options: {
25-
MongoClient: typeof MongoClient;
25+
MongoClient: typeof mongodb.MongoClient;
2626
uri?: string;
2727
log?: (out: any) => void;
2828
expect: typeof expect;
29+
mongodb?: typeof mongodb;
2930
sleep?: typeof sleep;
3031
getTimerCount?: () => number;
3132
timers?: typeof timers;

0 commit comments

Comments
 (0)