Created by: fson
The regexes in the Jest moduleNameMapper
configs were a bit too strict,
causing them to not pick up files with special characters like @
in the
file path. Change them to match anything with the correct file extension.
Fixes #579 (closed).
Test plan:
- Created a file named
template/src/logo@2x.png
. - Added
import './logo@2x.png';
toApp.js
. - Ran
npm test
. Tests pass.