Test module can't resolve module being tested [Angular4, Karma, Jasmine]
问题 I have a small TypeScript app created as a demo project. It is using Angular 4, Karma, Webpack 2 and Jasmine. The app builds successfully and I can run it in a browser. The tests do not work, when I run karma start in the command line, I see a message like this: ERROR in ./app/welcome/app.welcome.spec.ts Module not found: Error: Can't resolve './app.welcome' in 'D:\ng-ts-demo\app\welcome' @ ./app/welcome/app.welcome.spec.ts 4:20-44 @ ./app .spec.ts @ ./app/test-main.ts The weird thing is, the