I have a local .js file that I have to return in a mock call, but it's empty. In my spec.ts file I have this:
import * as jsfile from "../../../assets/mocks/myFile.js";
Then in beforeEach I do:
spyOn(myService, 'getFileJS').and.returnValue(of(jsfile));
But jsfile is an empty object. What is the correct way to import the content of that file?