You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can anyone point me in the right direction as far as setting up SystemJS for server-side testing configurations using node/iojs? I feel like SystemJS doesn't really fit for this but I'm unsure of what else to do when all of my modules depend on SystemJS for their mapped module loading.
The text was updated successfully, but these errors were encountered:
So it sounds like jest assumes that your modules resolve based on the Node resolution algorithm.
Unfortunately this isn't compatible with SystemJS's resolution algorithm.
If there was a way in jest to set a "custom resolver" algorithm through an API then we could plug jspm into jest, but I'm not sure if this is currently possible.
I recently started using Jest and was surprised there wasnt a solution out there already to get Jest to play nice with my JSPM-based app.
fortunately, it gave me a nice excuse to write my first Gulp plugin: gulp-jest-jspm.
to use it, you dont even have to be using Gulp, you can simply use its getJestConfig() method to generate the config for you before you run Jest.
Please see the issue here for details: jestjs/jest#367
Can anyone point me in the right direction as far as setting up SystemJS for server-side testing configurations using node/iojs? I feel like SystemJS doesn't really fit for this but I'm unsure of what else to do when all of my modules depend on SystemJS for their mapped module loading.
The text was updated successfully, but these errors were encountered: