All of a sudden React Native build fails: Unknown config option "transformIgnorePatterns" with value


Builds were working fine until today when these errors showed up:

Error: Unknown config option “transformIgnorePatterns” with value “node_modules/(?!(jest-)?react-native|react-clone-referenced-element)”. This is either a typing error or a user mistake and fixing it will remove this message.
Determining test suites to run…Running 56 test suites… FAIL …

There is no test script changes in the project. All tests ran fine on local machines. What could be the cause and how can I get around?



Ok. We figured out this was due to a “jest-react-native” upgrade. We reverted back to version “17.0.3” and it built okay.