Te falta cerrar una vez más. Si la identacion fuese correcta, no tendrías ese problema.<br>

    jQuery(document).ready(function () {
    console.log("slider partner");
    var pathname = window.location.pathname;
    console.log(pathname);
    if (pathname == "/realizzazione-siti-web-proba-slider/") {
        console.log(2222);
        jQuery.when(
            jQuery.getScript("https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.2/js/swiper.min.js"),
            jQuery.Deferred(function (deferred) {
                jQuery(deferred.resolve);
            })
        ).done(function () {
            var swiper = new Swiper(".swiper-container", {
                grabCursor: true,
                centeredSlides: true,
                slidesPerView: "auto",
                coverflowEffect: {
                    rotate: 20,
                    stretch: 0,
                    depth: 350,
                    modifier: 1,
                    slideShadows: true
                },
                pagination: {
                    el: ".swiper-pagination"
                }
            }
            )
        }
        )
    }
    });