We're working on an aurelia-based app using typescript.
For our test setup we use jasmine, and karma + wallby for our testrunnes. Wallaby for development (due to the ide integration), and karma for buildserver tests.
Recently we took in a dependency on an ES5 package (momentjs). Our two testrunners seem to want diffrent import statements for the same module.
Wallaby wants it like this: import * as moment from 'moment'; Karma wants it like this: import moment from 'moment'; Running the actual app in the browser works fine with either.
Why do they want different syntax for the same module? How can i get the two testrunners to unite on one import syntax?
More info on our setup:
Relevant tsconfig.json:
"target": "es5",
"module": "amd",
"moduleResolution": "node",
Both testrunners load typescript and does its own transpiling, I assume with the same global tsconfig.json as above.
Module loading using SystemJs and jspm(0.16).