Skip to content

Commit 7202eb2

Browse files
committed
fixup: stub out more cli-repl test sp usage
1 parent 28dd205 commit 7202eb2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cli-repl/src/mongosh-repl.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import path from 'path';
1212
import type { Duplex } from 'stream';
1313
import { PassThrough } from 'stream';
1414
import type { StubbedInstance } from 'ts-sinon';
15-
import { stubInterface } from 'ts-sinon';
15+
import sinon, { stubInterface } from 'ts-sinon';
1616
import { inspect, promisify } from 'util';
1717
import {
1818
expect,
@@ -95,6 +95,7 @@ describe('MongoshNodeRepl', function () {
9595
},
9696
});
9797
sp.runCommandWithCheck.resolves({ ok: 1 });
98+
sp.find.resolves(sinon.stub());
9899

99100
if (process.env.USE_NEW_AUTOCOMPLETE) {
100101
sp.listCollections.resolves([{ name: 'coll' }]);

0 commit comments

Comments
 (0)