Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianwalter/execa-helper
An AVA helper that makes it easier to test CLIs using Execa
https://github.com/ianwalter/execa-helper
ava execa helper
Last synced: about 2 hours ago
JSON representation
An AVA helper that makes it easier to test CLIs using Execa
- Host: GitHub
- URL: https://github.com/ianwalter/execa-helper
- Owner: ianwalter
- License: other
- Created: 2019-01-27T16:38:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T10:29:07.000Z (over 5 years ago)
- Last Synced: 2024-09-07T04:38:27.207Z (26 days ago)
- Topics: ava, execa, helper
- Language: JavaScript
- Size: 209 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ianwalter/execa-helper
> An [AVA][avaUrl] helper that makes it easier to test CLIs using
> [Execa][execaUrl][![npm page][npmImage]][npmUrl]
## Installation
```console
yarn add @ianwalter/execa-helper --dev
```## Usage
```js
import test from 'ava'
import execaHelper from '@ianwalter/execa-helper'const withCli = execaHelper('./cli.js')
test('my cli runs without errors', withCli, async (t, cli) => {
const { stdout } = await cli('run', '--with', 'stuff')
t.snapshot(stdout)
})
```## API
## License
Apache 2.0 with Commons Clause - See [LICENSE][licenseUrl]
Created by [Ian Walter](https://iankwalter.com)
[avaUrl]: https://github.com/avajs/ava
[execaUrl]: https://github.com/sindresorhus/execa
[npmImage]: https://img.shields.io/npm/v/@ianwalter/execa-helper.svg
[npmUrl]: https://www.npmjs.com/package/@ianwalter/execa-helper
[licenseUrl]: https://github.com/ianwalter/execa-helper/blob/master/LICENSE