Skip to content

Commit 7fa133f

Browse files
authored
Update generate.test.ts
1 parent 52fa844 commit 7fa133f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

test/commands/webapp/generate.test.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,28 @@ describe('webapp generate', () => {
6767
expect(output).to.include('Generating your web app');
6868
expect(output).to.include('Your Web App has been created');
6969
});
70+
71+
describe('vibe-coding-starter template', () => {
72+
it('sets template to vibe-coding-starter when specified', async () => {
73+
const uniqueName = `testVibeApp-${Date.now()}`;
74+
const result = await WebappGenerate.run([
75+
'--name',
76+
uniqueName,
77+
'--label',
78+
'Test Vibe App',
79+
'--template',
80+
'vibe-coding-starter',
81+
]);
82+
83+
expect(result.template).to.equal('vibe-coding-starter');
84+
expect(result.name).to.equal(uniqueName);
85+
});
86+
87+
it('sets template to vibe when vibe alias is used', async () => {
88+
const uniqueName = `testVibeApp-${Date.now()}-vibe`;
89+
const result = await WebappGenerate.run(['--name', uniqueName, '--label', 'Test Vibe App', '--template', 'vibe']);
90+
91+
expect(result.template).to.equal('vibe');
92+
});
93+
});
7094
});

0 commit comments

Comments
 (0)