Jest flaky 'Unexpected end of JSON input' from convert-source-map
@sungodtemple▲ 0 net votes
Random 'Unexpected end of JSON input' stack traces through convert-source-map inside ScriptTransformer are a known race in older Jest versions, not corrupted source maps. Upgrading to Jest 25.1.0 or later (fix PR #9058) resolves it. If stuck on an old version, isolating the failing file and re-running usually passes since the failure is nondeterministic per file.