File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe("bump", () => {
1414 // It will prompt the user and wait forever, so add a timeout.
1515 let cli = bump ( "" ) ;
1616
17- expect ( cli ) . to . have . stderr ( "Prompts can not be meaningfully rendered in non-TTY environments\n" ) ;
17+ expect ( cli . stdout ) . to . match ( / T h e c u r r e n t v e r s i o n i n p a c k a g e . j s o n i s 1 . 0 . 0 \n H o w w o u l d y o u l i k e t o b u m p i t \? / ) ;
1818 } ) ;
1919
2020 it ( "should error if an invalid argument is used" , ( ) => {
@@ -46,7 +46,7 @@ describe("bump", () => {
4646 it ( "should print a more detailed error if DEBUG is set" , ( ) => {
4747 files . create ( "package.json" , { version : "" } ) ;
4848
49- let cli = bump ( "major" , { env : { ...process . env , DEBUG : "true" } } ) ;
49+ let cli = bump ( "major" , { env : { ...process . env , DEBUG : "true" , NODE_OPTIONS : "" } } ) ;
5050
5151 expect ( cli ) . to . have . stdout ( "" ) ;
5252 expect ( cli ) . to . have . exitCode ( 1 ) ;
You can’t perform that action at this time.
0 commit comments