Webstorm not suggesting types from node_modules package in .spec.ts files

I have app written in Angular 6 (withiout cli). 
All karma/jasmine test files are kept in /test directory, next to /src directory (both are in project root). 
Project uses my package, that i have on my local npm (let's call it's called "my-package)". It's written in typescript, it's not compiled, no .d.ts files emitted, just a pice of source code used across few apps.

To get compilation working i had to add this package under "include" in tsconfig.json in project root.: 
... 
"include": [ 
"node_modules/qsg-front-common", 
"src/**/*" 
], 
...

In app file everything works fine. 
Problem occures when I try to import file from MyPackage in .spec.ts file. 
Webstorm doesn't suggest any types, when i start typing.

When I type import path by my own like: 
import {MyClass} from 'my-package/my-class';
test compile and works well.

Thank's in advance

0
1 comment

Please can you share a sample project that can be used to recreate the issue?

0

Please sign in to leave a comment.