11import { MongoshUnimplementedError } from '@mongosh/errors' ;
22import { expect } from 'chai' ;
3- import stripAnsi from 'strip-ansi' ;
43import {
54 argMetadata ,
65 CliOptionsSchema ,
@@ -1448,7 +1447,7 @@ describe('arg-parser', function () {
14481447 ) . to . throw ( InvalidArgumentError , 'expected number, received string' ) ;
14491448 } ) ;
14501449
1451- it ( 'can handle --a.b format' , ( ) => {
1450+ it ( 'can handle --a.b format' , function ( ) {
14521451 const schema = z . object ( {
14531452 a : z . object ( {
14541453 number : z . number ( ) ,
@@ -1475,7 +1474,7 @@ describe('arg-parser', function () {
14751474 } ) ;
14761475 } ) ;
14771476
1478- it ( 'can handle nested object fields' , ( ) => {
1477+ it ( 'can handle nested object fields' , function ( ) {
14791478 const schema = z . object ( {
14801479 parent : z . object ( {
14811480 child : z . string ( ) ,
@@ -1497,7 +1496,7 @@ describe('arg-parser', function () {
14971496 } ) ;
14981497 } ) ;
14991498
1500- it ( 'can handle multiple types in nested objects' , ( ) => {
1499+ it ( 'can handle multiple types in nested objects' , function ( ) {
15011500 const schema = z . object ( {
15021501 config : z . object ( {
15031502 enabled : z . boolean ( ) ,
@@ -1528,7 +1527,7 @@ describe('arg-parser', function () {
15281527 } ) ;
15291528 } ) ;
15301529
1531- it ( 'generateYargsOptionsFromSchema processes nested objects' , ( ) => {
1530+ it ( 'generateYargsOptionsFromSchema processes nested objects' , function ( ) {
15321531 const schema = z . object ( {
15331532 server : z . object ( {
15341533 host : z . string ( ) ,
@@ -1544,7 +1543,7 @@ describe('arg-parser', function () {
15441543 expect ( options . coerce ) . to . have . property ( 'server' ) ;
15451544 } ) ;
15461545
1547- it ( 'generateYargsOptionsFromSchema processes deeply nested objects' , ( ) => {
1546+ it ( 'generateYargsOptionsFromSchema processes deeply nested objects' , function ( ) {
15481547 const schema = z . object ( {
15491548 level1 : z . object ( {
15501549 level2 : z . object ( {
0 commit comments