Created by: ngbrown
For people who try to use Jest 24, there is a different version of micromatch
and it behaves differently. These changes should make it behave the same before and after changing Jest versions.
Without this change, Jest 24 will come up with no files to test.
I tested with npm run test -- --listTests
on two projects, one with the default Jest 23 and another with the new Jest 24. In addition to numerous normally named test files had some special case files like src/.test.js
, src/test.js
, and src/somethingtest.js
. Only the first two matched and the third one didn't; both pre-, and post- this change.