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

Make testNamePattern and testPathPattern play better together #3327

Merged
merged 7 commits into from
Apr 27, 2017

Conversation

rogeliog
Copy link
Contributor

@rogeliog rogeliog commented Apr 19, 2017

This is part of set of polish PRs for the typeaheads #2595

Summary

This adds the ability to clear the "active filters" and it also makes them work better together.

Test plan

Added some tests

filters

This PR still has a UI issue that needs to be resolved... The test summary also shows the active filters... what do you think that it is the best way to move forward with this?
screen shot 2017-04-19 at 1 49 00 pm

@rogeliog
Copy link
Contributor Author

What should be the correct UI for this?

@rogeliog rogeliog changed the title Make testNamePatter and testPathPattern play better together Make testNamePattern and testPathPattern play better together Apr 19, 2017
@@ -40,9 +40,12 @@ module.exports = class TestNamePatternPrompt {
this._prompt = prompt;
}

run(onSuccess: Function, onCancel: Function) {
run(onSuccess: Function, onCancel: Function, options) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs types :)

@cpojer
Copy link
Member

cpojer commented Apr 19, 2017

Please make sure to use the right prettier configuration (run with yarn prettier, for example, see package.json).

How about we change the summary in watch mode to show "Active filters: …" instead of "Ran all test suites"? That way you don't have to repeat yourself when typing "w" and it doesn't add any more text to the watch mode.

@rogeliog
Copy link
Contributor Author

But if we just change the test summary copy, how would it work when the screen has been cleared?

@cpojer
Copy link
Member

cpojer commented Apr 21, 2017

Hmm, that's a good point :(

@codecov-io
Copy link

Codecov Report

Merging #3327 into master will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #3327      +/-   ##
=========================================
+ Coverage   64.12%   64.2%   +0.08%     
=========================================
  Files         176     176              
  Lines        6531    6546      +15     
  Branches        4       4              
=========================================
+ Hits         4188    4203      +15     
  Misses       2342    2342              
  Partials        1       1
Impacted Files Coverage Δ
packages/jest-cli/src/constants.js 100% <ø> (ø) ⬆️
packages/jest-cli/src/TestNamePatternPrompt.js 94.54% <100%> (+0.2%) ⬆️
packages/jest-cli/src/TestPathPatternPrompt.js 98.14% <100%> (+0.07%) ⬆️
packages/jest-cli/src/watch.js 76.29% <100%> (+2.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c011c24...67fb5b8. Read the comment docs.

@cpojer cpojer merged commit b28cd07 into jestjs:master Apr 27, 2017
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
…#3327)

* Bring back filter by test name

* Add Active Filters UI

* Add tests

* Add appropritate flow types

* Run prettier

* Fix tests
@github-actions
Copy link

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 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

Successfully merging this pull request may close these issues.

4 participants