https://github.com/arve0/tty-test-helper
Test interactive terminal applications
https://github.com/arve0/tty-test-helper
Last synced: 3 months ago
JSON representation
Test interactive terminal applications
- Host: GitHub
- URL: https://github.com/arve0/tty-test-helper
- Owner: arve0
- Created: 2016-05-30T06:16:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T17:19:31.000Z (almost 9 years ago)
- Last Synced: 2025-02-14T08:37:28.911Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/tty-test-helper)
# tty-test-helper
Helper for testing interactive console applications.```js
import test from 'ava';
import ttyTestHelper from './index.js';test('ls', async (t) => {
const app = ttyTestHelper('ls', { args: ['fixtures'], fork: false });await app.next(); // waits for next stdout
t.true(app.stdout.length === 1);
});```