1
0
Fork 0

better CLI usage

This commit is contained in:
Travis Fischer 2018-06-23 19:50:16 -04:00 committed by Joost De Cock
parent de7c5a1acf
commit 740062db7c
7 changed files with 151 additions and 165 deletions

View 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))
})