jest icon indicating copy to clipboard operation
jest copied to clipboard

Add validation wrapper for PatternPrompt class

Open captain-yossarian opened this issue 6 years ago • 20 comments

Summary

Due to https://github.com/facebook/jest/issues/7382

Test plan

captain-yossarian avatar Dec 02 '18 15:12 captain-yossarian

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

facebook-github-bot avatar Dec 02 '18 15:12 facebook-github-bot

@SimenB Can you please check the algorithm of my fix? I had not add tests because I'm not sure if my code fit the jest code styleguide.

captain-yossarian avatar Dec 02 '18 15:12 captain-yossarian

@SerhiiBilyk Are you still working on this? I'd still love this feature to be included. I keep fat fingering things in watch mode.

natealcedo avatar Dec 21 '18 13:12 natealcedo

@natealcedo, I am waiting for review now

captain-yossarian avatar Dec 21 '18 15:12 captain-yossarian

@SimenB @rickhanlonii @rogeliog screenshots: jest_regexp_issue jest_regexp_issue2

captain-yossarian avatar Dec 26 '18 11:12 captain-yossarian

@rickhanlonii @SimenB Can you please help me with testing?

captain-yossarian avatar Jan 20 '19 13:01 captain-yossarian

@SerhiiBilyk I would suggest just writing all the tests first and then asking for a review. If you are unsure on how to write tests you should take a look at the CONTRIBUTING.md. That way, reviewers can give feedback on all of your code at one go rather than waiting for a review before writing tests.

natealcedo avatar Jan 21 '19 07:01 natealcedo

@natealcedo ok.

captain-yossarian avatar Jan 21 '19 08:01 captain-yossarian

@SimenB @rickhanlonii I've add e2e tests. Like I understand , unit tests of PatternPrompt are in jest-cli/src/tests/watch_filename_pattern_mode.test. But I don't know how to configure them. I will appreciate for any help. Thank you

captain-yossarian avatar Feb 02 '19 15:02 captain-yossarian

Like I understand , unit tests of PatternPrompt are in jest-cli/src/tests/watch_filename_pattern_mode.test

Yes, and in watch_test_name_pattern_mode.test. You could for example copy the test case "Pressing P enters pattern mode" and modify it so that it types an invalid pattern and tries to press enter, and then assert that Jest does not try to rerun with the invalid pattern.

jeysal avatar Feb 02 '19 16:02 jeysal

@jeysal thank you for your tip. Can you check please my unit test?

captain-yossarian avatar Feb 10 '19 10:02 captain-yossarian

btw, @SerhiiBilyk can you rebase your work to master? jest-watcher was recently converted to TypeScript

thymikee avatar Feb 10 '19 10:02 thymikee

@jeysal thank you for your tip. Can you check please my unit test?

Looking good, that's what I thought of 👍 As @thymikee said, the TypeScript migration unfortunately causes a few conflicts for existing PRs so you'll have to rebase, then we can give it a final review :)

jeysal avatar Feb 10 '19 10:02 jeysal

Don't worry too much about the conflict, we can resolve that ourselves before merging 🙂

SimenB avatar Feb 10 '19 10:02 SimenB

@thymikee @jeysal @SimenB branch is rebased

captain-yossarian avatar Feb 10 '19 11:02 captain-yossarian

Is it still relevant ?

captain-yossarian avatar Jul 15 '19 20:07 captain-yossarian

Yeah, I'd say so! Would you mind rebasing?

SimenB avatar Jul 15 '19 21:07 SimenB

I agree, this is still relevant

rogeliog avatar Jul 18 '19 16:07 rogeliog

@SimenB @thymikee Sorry, but I will have no time to do thi PR until September. So, feel free to reassign this PR to other people

captain-yossarian avatar Jul 24 '19 18:07 captain-yossarian

This PR is stale because it has been open 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Sep 08 '22 18:09 github-actions[bot]

This PR was closed because it has been stalled for 30 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.

github-actions[bot] avatar Oct 08 '22 19:10 github-actions[bot]

This pull request 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[bot] avatar Nov 08 '22 00:11 github-actions[bot]