Skip to content

Commit

Permalink
test: update test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jun 12, 2021
1 parent 39d42ec commit 89ef60a
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 89ef60a

Please sign in to comment.