test for help

pull/743/head^2
aniket-engg 4 years ago committed by Aniket
parent b001cae55c
commit 20122ee080
  1. 16
      libs/remix-tests/tests/testRunner.cli.spec.ts

@ -16,5 +16,21 @@ describe('testRunner: remix-tests CLI', () => {
const res = spawnSync(executablePath, ['-V'])
expect(res.stdout.toString().trim()).toBe(require('../package.json').version)
})
test('remix-tests help', () => {
const res = spawnSync(executablePath, ['-h'])
console.log('res---->', res.stdout.toString().trim())
const expectedHelp = `Usage: remix-tests [options] [command]
Options:
-V, --version output the version number
-v, --verbose <level> run with verbosity
-h, --help output usage information
Commands:
version output the version number
help output usage information`
expect(res.stdout.toString().trim()).toBe(expectedHelp)
})
})
})
Loading…
Cancel
Save