File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,6 +258,21 @@ build/%:
258258 expect ( templateContent ) . toContain ( 'export const template = Template()' )
259259 expect ( templateContent ) . toContain ( 'fromImage' )
260260 expect ( templateContent ) . toContain ( 'uhub.service.ucloud.cn/agentbox/e2bdev/base:latest' )
261+
262+ // Verify build files contain default CPU and memory settings (2c 2g)
263+ const buildDevContent = await fs . readFile (
264+ path . join ( templateDir , 'build.dev.ts' ) ,
265+ 'utf8'
266+ )
267+ expect ( buildDevContent ) . toContain ( 'cpuCount: 2' )
268+ expect ( buildDevContent ) . toContain ( 'memoryMB: 2048' )
269+
270+ const buildProdContent = await fs . readFile (
271+ path . join ( templateDir , 'build.prod.ts' ) ,
272+ 'utf8'
273+ )
274+ expect ( buildProdContent ) . toContain ( 'cpuCount: 2' )
275+ expect ( buildProdContent ) . toContain ( 'memoryMB: 2048' )
261276 } )
262277
263278 test ( 'should generate correct Python template content' , async ( ) => {
You can’t perform that action at this time.
0 commit comments