Open ljharb opened 7 years ago
I'm not sure if Jest's reporter provides this feature, I think it doesn't but I might be wrong... If this is the case, then it would be harder to implement this because it might require changes in facebook/jest
One thing that might help to mitigate the issue is adding the files/globs to testPathIgnorePatterns
I don't want to duplicate the contents of .eslintignore
tho - it totally would be nice to have the runner count up the number of ignored files, add that as a skip count (and explicit SKIP entries), and then use them in testPathIgnorePatterns to make the eslint run even faster :-D
I agree, this would be great!
@cpojer there is no way that this could be achieved in the current version of Jest right?
Don't pending tests show up in yellow in jest? That's what I'd assume ignored files would show up as.
Yeah, I think this should work if in the eslint runner you report all tests within a file as skipped.
Hmmm, I think I'm missing something sorry 😞
Isn't it that it could either show this when skipping all the tests
or this when skipping the test suite?
In the case of the eslint runner, there's only 1 test per file, and 1 file per test suite, so both should be marked skipped, no?
I'd like to see, alongside green PASS and red FAIL, a yellow SKIP when a file is eslintignored (to match up with the nice new skip count).
It'd also be nice if there was an option to suppress reporting these skipped tests (but showing them by default).