@@ -107,7 +107,7 @@ describe('change command', () => {
107107 await waitForPrompt ( ) ;
108108
109109 // Use default change type and custom message
110- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo' ) ;
110+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo (currently v1.0.0) ' ) ;
111111 await stdin . sendByChar ( '\n' ) ;
112112 // Also verify that the options shown are correct
113113 expect ( stdout . lastOutput ( ) ) . toMatchInlineSnapshot ( `
@@ -139,7 +139,7 @@ describe('change command', () => {
139139 const options = getOptions ( ) ;
140140 const changePromise = change ( options ) ;
141141
142- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo' ) ;
142+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo (currently v1.0.0) ' ) ;
143143 await stdin . sendByChar ( '\n' ) ; // default change type
144144 await stdin . sendByChar ( 'commit me please\n' ) ; // custom message
145145 await changePromise ;
@@ -170,7 +170,7 @@ describe('change command', () => {
170170 } ) ;
171171 const changePromise = change ( options ) ;
172172
173- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo' ) ;
173+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo (currently v1.0.0) ' ) ;
174174 await stdin . sendByChar ( '\n' ) ; // default change type
175175 await stdin . sendByChar ( 'commit me please\n' ) ; // custom message
176176 await changePromise ;
@@ -198,7 +198,7 @@ describe('change command', () => {
198198 const changePromise = change ( options ) ;
199199 await waitForPrompt ( ) ;
200200
201- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo' ) ;
201+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: foo (currently v1.0.0) ' ) ;
202202 await stdin . sendByChar ( '\n' ) ; // default change type
203203 await stdin . sendByChar ( 'stage me please\n' ) ; // custom message
204204 await changePromise ;
@@ -218,7 +218,7 @@ describe('change command', () => {
218218 const changePromise = change ( options ) ;
219219
220220 // use custom values for first package
221- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1' ) ;
221+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1 (currently v1.0.0) ' ) ;
222222 stdin . emitKey ( { name : 'down' } ) ;
223223 await stdin . sendByChar ( '\n' ) ;
224224 // also verify that the options shown are correct
@@ -230,7 +230,7 @@ describe('change command', () => {
230230 await stdin . sendByChar ( 'custom\n' ) ;
231231
232232 // use defaults for second package
233- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2' ) ;
233+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2 (currently v1.0.0) ' ) ;
234234 await stdin . sendByChar ( '\n\n' ) ;
235235
236236 await changePromise ;
@@ -260,13 +260,13 @@ describe('change command', () => {
260260 const changePromise = change ( options ) ;
261261
262262 // use custom values for first package
263- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1' ) ;
263+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1 (currently v1.0.0) ' ) ;
264264 stdin . emitKey ( { name : 'down' } ) ;
265265 await stdin . sendByChar ( '\n' ) ;
266266 await stdin . sendByChar ( 'custom\n' ) ;
267267
268268 // use defaults for second package
269- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2' ) ;
269+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2 (currently v1.0.0) ' ) ;
270270 await stdin . sendByChar ( '\n\n' ) ;
271271
272272 await changePromise ;
@@ -305,13 +305,13 @@ describe('change command', () => {
305305 const changePromise = change ( options ) ;
306306 await waitForPrompt ( ) ;
307307
308- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1' ) ;
308+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-1 (currently v1.0.0) ' ) ;
309309 expect ( stdout . lastOutput ( ) ) . toMatch ( / C h a n g e t y p e / ) ;
310310 await stdin . sendByChar ( '\n' ) ;
311311 expect ( stdout . lastOutput ( ) ) . toMatch ( / D e s c r i b e c h a n g e s / ) ;
312312 await stdin . sendByChar ( '\n' ) ;
313313
314- expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2' ) ;
314+ expect ( logs . mocks . log ) . toHaveBeenLastCalledWith ( 'Please describe the changes for: pkg-2 (currently v1.0.0) ' ) ;
315315 expect ( stdout . lastOutput ( ) ) . toMatch ( / c u s t o m q u e s t i o n / ) ;
316316 await stdin . sendByChar ( 'stuff\n' ) ;
317317 expect ( stdout . lastOutput ( ) ) . toMatch ( / C h a n g e t y p e / ) ;
0 commit comments