I'm facing an issue with Jasmine. I'm enclosing my tests in System.register (babel does this if you want to use ES6 modules). This is fine, I execute the registered block with System.import later on. However, tests inside it are not executed, although console.log calls are called:
System.register(["mymodule"], function (_export) {
"use strict";
var Mymodule;
return {
setters: [function (_mymodule) {
Mymodule = _mymodule["default"];
}],
execute: function () {
console.log("I'm here!!!");
console.log(Mymodule);
describe("Mymodule", function () {
it("has version", function () {
expect(Mymodule.VERSION).toEqual("1.0.0");
});
});
}
};
});
Both console.log calls are called and Mymodule is correctly initialized. However, the test is never run.
Are there any chance I can force Jasmine to detect this test?