@@ -37,6 +37,7 @@ import { AnalyticsErrorMarkers } from "../../AnalyticsMarkers.js";
3737import type { CommandExecutor } from "../../app/CommandExecutor.js" ;
3838import { Start } from "../../commands/start.js" ;
3939import { IContainer , ITypes } from "../../config/index.js" ;
40+ import { PROGRAM_NAME } from "../../constants.js" ;
4041import { StartCommandOptions } from "../../models/StartCommandOptions.js" ;
4142import type { CommandValidator } from "../../validators/CommandValidator.js" ;
4243
@@ -91,7 +92,7 @@ describe("start", () => {
9192 it ( "should execute succesfully when no parameters are passed." , async ( ) => {
9293 analyticsConsent . get . resolves ( true ) ;
9394
94- const start = new Start ( [ ] , new Config ( { root : "." } ) ) ;
95+ const start = new Start ( [ ] , new Config ( { name : PROGRAM_NAME , root : "." } ) ) ;
9596
9697 await start . run ( ) ;
9798
@@ -111,7 +112,7 @@ describe("start", () => {
111112 it ( "should execute succesfully when parameters are passed." , async ( ) => {
112113 const start = new Start (
113114 [ "--src" , DEFAULT_SRC_DIRECTORY , "--use" , "tsc" , "--port" , "8000" , "--analytics" , "off" , "--verbose" ] ,
114- new Config ( { root : "." } )
115+ new Config ( { name : PROGRAM_NAME , root : "." } )
115116 ) ;
116117
117118 await start . run ( ) ;
@@ -125,7 +126,7 @@ describe("start", () => {
125126
126127 describe ( "catch" , ( ) => {
127128 it ( "should fail when incorrect params are passed" , async ( ) => {
128- const setup = new Start ( [ "--incorrect-flag" ] , new Config ( { root : "." } ) ) ;
129+ const setup = new Start ( [ "--incorrect-flag" ] , new Config ( { name : PROGRAM_NAME , root : "." } ) ) ;
129130
130131 const error = new Error ( "Nonexistent flag: --incorrect-flag\nSee more help with --help" ) ;
131132
0 commit comments