@ianwalter/execa-helper

1.0.1 • Public • Published

@ianwalter/execa-helper

An AVA helper that makes it easier to test CLIs using Execa

npm page

Installation

yarn add @ianwalter/execa-helper --dev

Usage

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

 

Created by Ian Walter

Readme

Keywords

Package Sidebar

Install

npm i @ianwalter/execa-helper

Weekly Downloads

2

Version

1.0.1

License

SEE LICENSE IN LICENSE

Unpacked Size

7.24 kB

Total Files

17

Last publish

Collaborators

  • ianwalter