Think on this line... we can have a mocked class on window.libFuncName, so jQuery it's not needed for our tests. What do you think about it?