@@ -140,30 +140,10 @@ describe("createStartupScriptCommand()", () => {
140140 expect ( cmd ) . toBe ( "/foo/script.sh" ) ;
141141 } ) ;
142142 } ) ;
143- describe ( "non-valid use cases" , ( ) => {
144- it ( "should handle non-valid npm patterns" , ( ) => {
145- const cmd = createStartupScriptCommand ( "npm" , { } ) ;
146- expect ( cmd ) . toBe ( null ) ;
147- } ) ;
148- it ( "should handle non-valid yarn patterns" , ( ) => {
149- const cmd = createStartupScriptCommand ( "yarn" , { } ) ;
150- expect ( cmd ) . toBe ( null ) ;
151- } ) ;
152- it ( "should handle non-valid npx patterns" , ( ) => {
153- const cmd = createStartupScriptCommand ( "npx" , { } ) ;
154- expect ( cmd ) . toBe ( null ) ;
155- } ) ;
156- it ( "should handle non-existant scripts (relative)" , ( ) => {
157- const cmd = createStartupScriptCommand ( "script.sh" , { } ) ;
158- expect ( cmd ) . toBe ( null ) ;
159- } ) ;
160- it ( "should handle non-existant scripts (asbolute)" , ( ) => {
161- const cmd = createStartupScriptCommand ( "/foo/bar/script.sh" , { } ) ;
162- expect ( cmd ) . toBe ( null ) ;
163- } ) ;
164- it ( "should handle non-existant scripts (asbolute)" , ( ) => {
165- const cmd = createStartupScriptCommand ( `"npm:µ˜¬…˚πº–ª¶§∞¢£¢™§_)(*!#˜%@)` , { } ) ;
166- expect ( cmd ) . toBe ( null ) ;
143+ describe ( "custom command" , ( ) => {
144+ it ( "should return custom command" , ( ) => {
145+ const cmd = createStartupScriptCommand ( "dotnet watch run" , { } ) ;
146+ expect ( cmd ) . toBe ( "dotnet watch run" ) ;
167147 } ) ;
168148 } ) ;
169149} ) ;
0 commit comments