velesin / jasmine-jquery

jQuery matchers and fixture loader for Jasmine framework
MIT License
1.89k stars 346 forks source link

Has anyone ever tried to use this with Jest? #307

Open micronaut opened 6 years ago

micronaut commented 6 years ago

I am trying to move from using Karma to using Jest for our testing. We have some existing specs that are using jasmine-jquery to load html files to set up the dom for testing.

I am getting an error "Fixture could not be loaded" and I was wondering if anyone has used this library with Jest or how to determine why the fixture can't be loaded.

Thanks

ganqqwerty commented 6 years ago

Man, it's totally weird, but it seems that the library hasn't been updated in ages, like suddenly people in frontend stopped writing tests altogether. I don't know what's going on, but it's unlikely that it supports jest.

micronaut commented 6 years ago

Thanks for the response @ganqqwerty. I've been digging into the jsdom code that Jest uses to see how/where Jest would serve up a static file, but still trying to get it to work.
I saw this project was not being actively maintained and I haven't found any way to load an external fixture in Jest.