From b1b5125d5e7f2872af9bcf320c8467447d174a6c Mon Sep 17 00:00:00 2001 From: tommy-mitchell Date: Sat, 27 Jan 2024 18:55:54 -0600 Subject: [PATCH] fake TTY on runner --- .github/workflows/main.yml | 2 +- test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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'}));