These are chat archives for systemjs/systemjs

23rd
Jun 2015
Sharon (Sean) Rolel
@Mosho1
Jun 23 2015 11:41
I assume System.import uses caching?
Sharon (Sean) Rolel
@Mosho1
Jun 23 2015 14:31
also, how do I tell systemjs to "import" from window?
Charles Patton Jr
@buddyp450
Jun 23 2015 14:51
I'm currently using jspm for package management and jest for testing on a react project. SystemJS hasn't been initialized in time for the test so my require statements are defaulting to node's require which only looks in node_modules and not jspm_modules. I am trying to decide the route I should take. I think what I need to do is load the systemjs module and config.js script before each test... thoughts?
Charles Patton Jr
@buddyp450
Jun 23 2015 15:08
Or to rephrase my question: how do people typically build their unit tests when using SystemJS to handle module loading?
Charles Patton Jr
@buddyp450
Jun 23 2015 15:44
My end-game is I would just like my System.config map to be used in my unit tests so that I can resolve my "cannot find module" errors.
Charles Patton Jr
@buddyp450
Jun 23 2015 15:59
Nvmd, just found the guide to using systemjs in a non-browser environment right on the home page. :)