Forum Discussion
Ketill Antoníus Ágústsson
Feb 14, 2018Copper Contributor
Sharepoint Framework with custom npm package and testing
Background Info
I'm having trouble testing my solution once I've included a custom npm package (through VSTS). I've setup my tests by following Elio Struyf's https://www.eliostruyf.com/writing-unit...
Ketill Antoníus Ágústsson
Feb 14, 2018Copper Contributor
Turns out it was quite basic, I had my main index.js file according to the npm package's package.json set wrong. That wasn't apparent because TypeScript picked up the original index.ts in the root. PhantomJS / Karma then didn't understand that file and couldn't find the correct index.js file.