Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: update test suite
  • Loading branch information
jamesgeorge007 committed Jun 12, 2021
commit 89ef60a6caf0e6b1b9baeaf7efa95e435c5b7e3e
5 changes: 5 additions & 0 deletions packages/create-app/__tests__/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ test('prompts for the framework if none supplied', () => {
expect(stdout).toContain('Select a framework:')
})

test('prompts for the framework on not supplying a value for --template', () => {
const { stdout } = run([projectName, '--template'])
expect(stdout).toContain('Select a framework:')
})

test('prompts for the framework on supplying an invalid template', () => {
const { stdout } = run([projectName, '--template', 'unknown'])
expect(stdout).toContain(
Expand Down