I use jsfeat javascript library in my Angular2 project.
I put this at the beginning of my .ts and .spec.ts files:
declare var jsfeat: any;
I included jsfeat.js in my index.html.
Now I want to run Angular2 tests, but I get:
ReferenceError: jsfeat is not defined
The test code is:
describe('MyObj instance', function () {
it('should instantiate MyObj', () => {
expect(new MyObj()).toBeDefined('Whoopie!');
});
});