• Ville Immonen's avatar
    Revert Jest moduleNameMapper regex back to a whitelist (#1149) · 715de0de
    Ville Immonen authored
    Jest matches moduleNameMapper regexes with module names, not the full
    file path, so the negative lookahead doesn’t work for filtering out
    JS files, because they can be imported without the extension. So paths
    like `lodash.assign` and `../utils/range` were mislabeled as resources
    with unknown file extensions because they have a dot in the name.
    
    As a stopgap measure, revert the moduleNameMapper regex added in #1077.
    715de0de