Skip to content

arve0/tty-test-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

tty-test-helper

Helper for testing interactive console applications.

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);
});

About

Test interactive terminal applications

Resources

Stars

Watchers

Forks

Packages

No packages published