dillon1000/react

Commit

fix failed tests on Windows #8737 (#8747)

* fix failed tests on Windows #8737

* Use regexp literal instead of `RegExp` constructor so that we don't need to bother with escaping special character like `\` and `.`.
Note that by removing the path separator in regexp, I've relaxed the matching condition a little.Since there's little chance we have files like `XXXReact.d.ts`,it should not matter.
Browse files
Changed paths2 files
First-parent comparison
M scripts/jest/ts-preprocessor.js ModifiedM src/isomorphic/modern/class/__tests__/ReactClassEquivalence-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…