Closed amilbeck closed 6 years ago
Ok, to add to my confusion, I added basePath: './src'
and now it is launching the browser but still not running any of my tests. In fact, it doesn't look like any of my source files are even being loaded.
START:
31 05 2018 17:00:13.401:INFO [karma]: Karma v2.0.2 server started at http://0.0.0.0:9876/
31 05 2018 17:00:13.404:INFO [launcher]: Launching browser Chrome with unlimited concurrency
31 05 2018 17:00:13.411:INFO [launcher]: Starting browser Chrome
31 05 2018 17:00:15.489:INFO [Chrome 66.0.3359 (Windows 10 0.0.0)]: Connected on socket Gi9WcZfJWi3Zr5-lAAAA with id 93351701
Finished in 0.048 secs / 0 secs @ 17:00:15 GMT-0400 (Eastern Daylight Time)
SUMMARY:
√ 0 tests completed
npm ERR! Test failed. See above for more details.
The karma-typescript-bundle.js
file is completely empty for some reason
I ended up going a different route. Not sure what I was doing wrong here but I just couldn't get it to load any files no matter what I tried.
I'm having some trouble getting my tests to run. They compile fine but no tests are running. In fact, chrome isn't even launching which I find strange because it was launching fine and then failing when I had some compiler errors.
I've just joined a new project and the task I'm working on is migrating all the current unit and e2e tests to Jasmine. Previously the project was using
mocha
,sinon
,chai
, andmocha-webpack
to run them. I've removed all of those dependencies and added the usual suspects as far asjasmine
andkarma-typescript
are concerned. I setup my karma config based on the angular 2 example you have.Here is a snippet of the logs from before I fixed the compiler error:
You can see that the launcher was working. However, now that I've fixed the compiler error all I'm getting is the project compiles and then karma exits.
Here is the logs from after the error was fixed:
That's all I get. Have you ever seen this before? Know what the problem might be?
Here is my config for reference:
I'm really stumped. I don't understand why it at least attempted to run when there was an error but not at all once it was fixed. Any ideas would be greatly appreciated.