UNPKG

orionsoft-react-scripts

Version:

Orionsoft Configuration and scripts for Create React App.

18 lines (14 loc) 408 B
var path = require('path') var test = require('tape') var crossSpawn = require('cross-spawn') var CMD_PATH = path.join(__dirname, '..', 'bin', 'cmd.js') test('command line usage: --help', function (t) { t.plan(1) var child = crossSpawn(CMD_PATH, ['--help']) child.on('error', function (err) { t.fail(err) }) child.on('close', function (code) { t.equal(code, 0, 'zero exit code') }) })