Jest: Unify `no tests found` message when running MPR

Created on 22 Aug 2017  路  5Comments  路  Source: facebook/jest

currently, if there are no test found matching a pattern when running jest in Multi project runner mode we get a very noisy output for each separate project. we need to unify it into one single message for all projects.
example:

screen shot 2017-08-22 at 10 12 11 am

good first issue

Most helpful comment

I also find this super noisy

How about something like this?

In /path/to/root
  781 files checked across 8 projects. for more details run with `--verbose`

running with --verbose would give as similar output as today's behavior.

All 5 comments

I also find this super noisy

How about something like this?

In /path/to/root
  781 files checked across 8 projects. for more details run with `--verbose`

running with --verbose would give as similar output as today's behavior.

Unrelated note: Once displayName gets merged, it might be a good idea to add it to this output

In PROJECT_1 /some/path/to/project
  X files checked.
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - X matches
  testPathIgnorePatterns: /node_modules/ - X matches

In PROJECT_2 /some/path/to/project2
  Y files checked.
  testMatch: **/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x) - Y matches
  testPathIgnorePatterns: /node_modules/ - Y matches

Agree with @rogeliog, both of these suggestions make a lot of sense to me.

I'd like to work on this. I'll have the PR shortly.

Awesome!

Was this page helpful?
0 / 5 - 0 ratings