Skip to content

Commit

Permalink
tests: test case to ensure writing to stdin (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored Apr 27, 2020
1 parent b43709d commit a3faa41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/utils/test-utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@ describe('runAndGetWatchProc function', () => {
expect(stdout).toBeTruthy();
expect(stderr).toBeFalsy();
});

it('writes to stdin', async () => {
const { stdout } = await runAndGetWatchProc(__dirname, ['init'], false, 'n');
expect(stdout).toContain('Which will be your application entry point?');
});
});

0 comments on commit a3faa41

Please sign in to comment.