@@ -896,27 +896,27 @@ t.test('workspaces', t => {
896
896
t . match ( RUN_SCRIPTS , [ ] )
897
897
t . strictSame ( LOG . map ( cleanOutput ) , [
898
898
'Lifecycle script `missing-script` failed with error:' ,
899
- 'Error: Missing script: "missing-script"' ,
899
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
900
900
' in workspace: [email protected] ' ,
901
901
' at location: {CWD}/test/lib/run-script-workspaces/packages/a' ,
902
902
'Lifecycle script `missing-script` failed with error:' ,
903
- 'Error: Missing script: "missing-script"' ,
903
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
904
904
' in workspace: [email protected] ' ,
905
905
' at location: {CWD}/test/lib/run-script-workspaces/packages/b' ,
906
906
'Lifecycle script `missing-script` failed with error:' ,
907
- 'Error: Missing script: "missing-script"' ,
907
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
908
908
' in workspace: [email protected] ' ,
909
909
' at location: {CWD}/test/lib/run-script-workspaces/packages/c' ,
910
910
'Lifecycle script `missing-script` failed with error:' ,
911
- 'Error: Missing script: "missing-script"' ,
911
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
912
912
' in workspace: [email protected] ' ,
913
913
' at location: {CWD}/test/lib/run-script-workspaces/packages/d' ,
914
914
'Lifecycle script `missing-script` failed with error:' ,
915
- 'Error: Missing script: "missing-script"' ,
915
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
916
916
' in workspace: e' ,
917
917
' at location: {CWD}/test/lib/run-script-workspaces/packages/e' ,
918
918
'Lifecycle script `missing-script` failed with error:' ,
919
- 'Error: Missing script: "missing-script"' ,
919
+ 'Error: Missing script: "missing-script"\n\nTo see a list of scripts, run:\n npm run ' ,
920
920
' in workspace: [email protected] ' ,
921
921
' at location: {CWD}/test/lib/run-script-workspaces/packages/noscripts' ,
922
922
] , 'should log error msgs for each workspace script' )
@@ -937,11 +937,11 @@ t.test('workspaces', t => {
937
937
t . match ( RUN_SCRIPTS , [ ] )
938
938
t . strictSame ( LOG . map ( cleanOutput ) , [
939
939
'Lifecycle script `test` failed with error:' ,
940
- 'Error: Missing script: "test"' ,
940
+ 'Error: Missing script: "test"\n\nTo see a list of scripts, run:\n npm run ' ,
941
941
' in workspace: [email protected] ' ,
942
942
' at location: {CWD}/test/lib/run-script-workspaces/packages/a' ,
943
943
'Lifecycle script `test` failed with error:' ,
944
- 'Error: Missing script: "test"' ,
944
+ 'Error: Missing script: "test"\n\nTo see a list of scripts, run:\n npm run ' ,
945
945
' in workspace: [email protected] ' ,
946
946
' at location: {CWD}/test/lib/run-script-workspaces/packages/b' ,
947
947
] , 'should log error msgs for each workspace script' )
0 commit comments