@@ -296,6 +296,44 @@ describe('CRUD API explain option', function () {
296296 } ;
297297 }
298298 } ) ;
299+
300+ describe . skip ( 'explain with timeoutMS' , function ( ) {
301+ describe ( 'when a cursor api is being explained' , function ( ) {
302+ describe ( 'when timeoutMS is provided' , function ( ) {
303+ it ( 'the explain command respects timeoutMS' , async function ( ) { } ) ;
304+
305+ it ( 'the explain command has the calculated maxTimeMS value attached' , async function ( ) { } ) ;
306+
307+ it ( 'the explained command does not have a maxTimeMS value attached' , async function ( ) { } ) ;
308+ } ) ;
309+
310+ describe ( 'when timeoutMS and maxTimeMS are both provided' , function ( ) {
311+ it ( 'an error is thrown indicating incompatibility of those options' , async function ( ) { } ) ;
312+ } ) ;
313+ } ) ;
314+
315+ describe ( 'when a non-cursor api is being explained' , function ( ) {
316+ describe ( 'when timeoutMS is provided' , function ( ) {
317+ it ( 'the explain command respects timeoutMS' , async function ( ) { } ) ;
318+
319+ it ( 'the explain command has the calculated maxTimeMS value attached' , async function ( ) { } ) ;
320+
321+ it ( 'the explained command does not have a maxTimeMS value attached' , async function ( ) { } ) ;
322+ } ) ;
323+
324+ describe ( 'when timeoutMS and maxTimeMS are both provided' , function ( ) {
325+ it ( 'an error is thrown indicating incompatibility of those options' , async function ( ) { } ) ;
326+ } ) ;
327+ } ) ;
328+
329+ describe ( 'when find({}, { explain: ...}) is used with timeoutMS' , function ( ) {
330+ it ( 'an error is thrown indicating that explain is not supported with timeoutMS for this API' , async function ( ) { } ) ;
331+ } ) ;
332+
333+ describe ( 'when aggregate({}, { explain: ...}) is used with timeoutMS' , function ( ) {
334+ it ( 'an error is thrown indicating that explain is not supported with timeoutMS for this API' , async function ( ) { } ) ;
335+ } ) ;
336+ } ) ;
299337} ) ;
300338
301339function explainValueToExpectation ( explainValue : boolean | string ) {
0 commit comments