Skip to content

Commit

Permalink
fake TTY on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Jan 28, 2024
1 parent 6b53cc4 commit b1b5125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: script -e -c "npm test"
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}));
Expand Down

0 comments on commit b1b5125

Please sign in to comment.