@@ -498,6 +498,8 @@ describe('CliRepl', function () {
498498 process . env . MONGOSH_SKIP_NODE_VERSION_CHECK ;
499499 delete process . env . MONGOSH_SKIP_NODE_VERSION_CHECK ;
500500 delete ( process as any ) . version ;
501+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
502+ // @ts -ignore version is readonly
501503 process . version = 'v8.0.0' ;
502504
503505 try {
@@ -512,6 +514,8 @@ describe('CliRepl', function () {
512514 expect ( e . name ) . to . equal ( 'MongoshWarning' ) ;
513515 expect ( ( e as any ) . code ) . to . equal ( CliReplErrors . NodeVersionMismatch ) ;
514516 } finally {
517+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
518+ // @ts -ignore version is readonly
515519 process . version = `v${ process . versions . node } ` ;
516520 process . env . MONGOSH_SKIP_NODE_VERSION_CHECK =
517521 origVersionCheckEnvVar || '' ;
@@ -2861,6 +2865,8 @@ describe('CliRepl', function () {
28612865
28622866 it ( 'does not print any deprecation warning when CLI is ran with --quiet flag' , async function ( ) {
28632867 // 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
28642870 process . version = '18.20.0' ;
28652871 process . versions . openssl = '1.1.11' ;
28662872 cliRepl . getGlibcVersion = ( ) => '1.27' ;
0 commit comments