better CLI usage
This commit is contained in:
parent
de7c5a1acf
commit
740062db7c
7 changed files with 151 additions and 165 deletions
10
packages/create-freesewing-pattern/index.test.js
Normal file
10
packages/create-freesewing-pattern/index.test.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('ava')
|
||||
const execa = require('execa')
|
||||
|
||||
test('--help', async (t) => {
|
||||
const { stdout } = await execa('./index.js', [ '--help' ])
|
||||
t.true(stdout.length > 0)
|
||||
t.true(/create-react-library/.test(stdout))
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue