def METHOD_NAME(stream_reader: MagicMock) -> None:
    stream_reader.open_file.return_value.__enter__.return_value = INVALID_JSON_CONTENT
    logger = Mock()
    with pytest.raises(RecordParseError):
        list(JsonlParser().parse_records(Mock(), Mock(), stream_reader, logger, None))
    assert logger.warning.call_count == 0