@@ -290,15 +290,15 @@ t.test('try to run missing script', t => {
290290 t . test ( 'no suggestions' , t => {
291291 runScript . exec ( [ 'notevenclose' ] , er => {
292292 t . match ( er , {
293- message : 'Unknown command : "notevenclose"' ,
293+ message : 'Missing script : "notevenclose"' ,
294294 } )
295295 t . end ( )
296296 } )
297297 } )
298298 t . test ( 'script suggestions' , t => {
299299 runScript . exec ( [ 'helo' ] , er => {
300300 t . match ( er , {
301- message : 'Unknown command : "helo"' ,
301+ message : 'Missing script : "helo"' ,
302302 } )
303303 t . match ( er , {
304304 message : 'npm run hello' ,
@@ -309,7 +309,7 @@ t.test('try to run missing script', t => {
309309 t . test ( 'bin suggestions' , t => {
310310 runScript . exec ( [ 'goodneght' ] , er => {
311311 t . match ( er , {
312- message : 'Unknown command : "goodneght"' ,
312+ message : 'Missing script : "goodneght"' ,
313313 } )
314314 t . match ( er , {
315315 message : 'npm exec goodnight' ,
@@ -896,27 +896,27 @@ t.test('workspaces', t => {
896896 t . match ( RUN_SCRIPTS , [ ] )
897897 t . strictSame ( LOG . map ( cleanOutput ) , [
898898 'Lifecycle script `missing-script` failed with error:' ,
899- 'Error: Unknown command : "missing-script"' ,
899+ 'Error: Missing script : "missing-script"' ,
900900 ' in workspace: [email protected] ' , 901901 ' at location: {CWD}/test/lib/run-script-workspaces/packages/a' ,
902902 'Lifecycle script `missing-script` failed with error:' ,
903- 'Error: Unknown command : "missing-script"' ,
903+ 'Error: Missing script : "missing-script"' ,
904904 ' in workspace: [email protected] ' , 905905 ' at location: {CWD}/test/lib/run-script-workspaces/packages/b' ,
906906 'Lifecycle script `missing-script` failed with error:' ,
907- 'Error: Unknown command : "missing-script"' ,
907+ 'Error: Missing script : "missing-script"' ,
908908 ' in workspace: [email protected] ' , 909909 ' at location: {CWD}/test/lib/run-script-workspaces/packages/c' ,
910910 'Lifecycle script `missing-script` failed with error:' ,
911- 'Error: Unknown command : "missing-script"' ,
911+ 'Error: Missing script : "missing-script"' ,
912912 ' in workspace: [email protected] ' , 913913 ' at location: {CWD}/test/lib/run-script-workspaces/packages/d' ,
914914 'Lifecycle script `missing-script` failed with error:' ,
915- 'Error: Unknown command : "missing-script"' ,
915+ 'Error: Missing script : "missing-script"' ,
916916 ' in workspace: e' ,
917917 ' at location: {CWD}/test/lib/run-script-workspaces/packages/e' ,
918918 'Lifecycle script `missing-script` failed with error:' ,
919- 'Error: Unknown command : "missing-script"' ,
919+ 'Error: Missing script : "missing-script"' ,
920920 ' in workspace: [email protected] ' , 921921 ' at location: {CWD}/test/lib/run-script-workspaces/packages/noscripts' ,
922922 ] , 'should log error msgs for each workspace script' )
@@ -937,11 +937,11 @@ t.test('workspaces', t => {
937937 t . match ( RUN_SCRIPTS , [ ] )
938938 t . strictSame ( LOG . map ( cleanOutput ) , [
939939 'Lifecycle script `test` failed with error:' ,
940- 'Error: Unknown command : "test"' ,
940+ 'Error: Missing script : "test"' ,
941941 ' in workspace: [email protected] ' , 942942 ' at location: {CWD}/test/lib/run-script-workspaces/packages/a' ,
943943 'Lifecycle script `test` failed with error:' ,
944- 'Error: Unknown command : "test"' ,
944+ 'Error: Missing script : "test"' ,
945945 ' in workspace: [email protected] ' , 946946 ' at location: {CWD}/test/lib/run-script-workspaces/packages/b' ,
947947 ] , 'should log error msgs for each workspace script' )
0 commit comments