Devs ~ Coding FAQ - GeoscienceAustralia/egeodesy GitHub Wiki

Imports

Import the directory (under node_modules) that contains the package.json and NOT the .d.ts file.

This is not a problem in production (and with IntelliJ's intellisense) but it fails in testing due to the nit-picky configuration that is required.

This doesn't cause tests to fail but stops the ones after the file with the import is encountered from running. And there is no visible sign that there is a problem - we only know because we are expecting more tests to run. You can also see something like this on the terminal when running tests:

06 01 2017 16:07:50.241:WARN [web-server]: 404: /base/node_modules/ng2-bootstrap/ng2-bootstrap/ng2-bootstrap.js

The import should look like this for example:

import { DatepickerModule } from 'ng2-bootstrap';