I am currently executing Jasmine tests within a SystemJS and Typescript environment (essentially a plunk setup that is designed to be an Angular 2 testing platform).
Jasmine is being deliberately utilized as a global library, rather than being imported via TypeScript.
As a result, the following message is displayed:
No specs found
Despite no errors appearing in the console, the specs are not running as expected:
main.ts
describe('test', () => {
it('test', () => {
console.log('test');
expect(1).toBe(1);
});
});
I suspect that this issue arises from the asynchronous loading of main.ts
with SystemJS, which requires manual triggering of the Jasmine boot procedure to recognize the specs.
The documentation outlines the default boot configuration in Jasmine, but lacks clarity on how to manually execute the boot process.
What is the recommended approach for running tests using SystemJS and global Jasmine in this scenario?