Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const {resolve} = require('path')
const {render} = require('cli-testing-library')

test('Is able to make terminal input and view in-progress stdout', async () => {
const {cleanup, findByText, queryByText, userEvent} = await render('node', [
const {clear, findByText, queryByText, userEvent} = await render('node', [
resolve(__dirname, './execute-scripts/stdio-inquirer.js'),
])

Expand All @@ -79,13 +79,13 @@ test('Is able to make terminal input and view in-progress stdout', async () => {

expect(await findByText('❯ One')).toBeInTheConsole()

cleanup()
clear()

userEvent('[ArrowDown]')

expect(await findByText('❯ Two')).toBeInTheConsole()

cleanup()
clear()

userEvent.keyboard('[Enter]')

Expand Down