@@ -498,6 +498,8 @@ describe('CliRepl', function () {
498
498
process . env . MONGOSH_SKIP_NODE_VERSION_CHECK ;
499
499
delete process . env . MONGOSH_SKIP_NODE_VERSION_CHECK ;
500
500
delete ( process as any ) . version ;
501
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
502
+ // @ts -ignore version is readonly
501
503
process . version = 'v8.0.0' ;
502
504
503
505
try {
@@ -512,6 +514,8 @@ describe('CliRepl', function () {
512
514
expect ( e . name ) . to . equal ( 'MongoshWarning' ) ;
513
515
expect ( ( e as any ) . code ) . to . equal ( CliReplErrors . NodeVersionMismatch ) ;
514
516
} finally {
517
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
518
+ // @ts -ignore version is readonly
515
519
process . version = `v${ process . versions . node } ` ;
516
520
process . env . MONGOSH_SKIP_NODE_VERSION_CHECK =
517
521
origVersionCheckEnvVar || '' ;
@@ -2861,6 +2865,8 @@ describe('CliRepl', function () {
2861
2865
2862
2866
it ( 'does not print any deprecation warning when CLI is ran with --quiet flag' , async function ( ) {
2863
2867
// Setting all the possible situation for a deprecation warning
2868
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2869
+ // @ts -ignore version is readonly
2864
2870
process . version = '18.20.0' ;
2865
2871
process . versions . openssl = '1.1.11' ;
2866
2872
cliRepl . getGlibcVersion = ( ) => '1.27' ;
0 commit comments