diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea28643..623210b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,4 +19,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm install - - run: npm test + - run: script -e -c "npm test" diff --git a/test.js b/test.js index 9cf46e5..16215fa 100644 --- a/test.js +++ b/test.js @@ -13,6 +13,7 @@ test('stdin', async t => { t.is(stdout, 'foofoo'); }); +// NOTE: This test assumes AVA is run from a TTY terminal test('no input', async t => { /** @type {import('execa').ExecaError} */ const error = await t.throwsAsync(execa('./cli.js', {stdin: 'inherit'}));