Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--watch mode integration testing framework #4022

Closed
aaronabramov opened this issue Jul 12, 2017 · 2 comments
Closed

--watch mode integration testing framework #4022

aaronabramov opened this issue Jul 12, 2017 · 2 comments

Comments

@aaronabramov
Copy link
Contributor

we need to build some kind of integration testing utility for testing --watch mode.
Current tests are testing most of the core functionality, but don't catch any integration bugs and are very expensive in maintenance (have to be fixed/updated every time we touch watch code)

we need to have something that keeps the subprocess running and interacts with it, matchin output/input

test('watch mode', async () => {
  const watch = runJestWatch(DIR);
  await watch.sendKeys('t');
  await watch.sedKeys('test name pattern');
  expect(watch.purgeStdout()).toMatch('ran all tests with names matching');
  await watch.exit();
});
@cpojer
Copy link
Member

cpojer commented Nov 24, 2017

Maybe one day… :)

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants