Actual behavior
I had a test that ultimately boiled down to the following Jasmine expectation:
expect('http://www.google.com/base/').toEqual('http://www.example.com/base/');
As the failure message, I get:
This was quite puzzling and a pain to isolate to karma in my real scenario.
Expected behavior
Clear message as given by Jasmine directly:
Expected 'http://www.google.com/base/' to equal 'http://www.example.com/base/'.
I think this issue relates to the URL_REGEXP in Karma's reporter.js but I haven't dived deep enough to follow what's going on there.
Environment Details
- Karma version (output of
karma --version):
Karma version: 1.1.0
- Relevant part of your
karma.config.js file
Minimal jasmine config.
Steps to reproduce the behaviour
- Checkout https://github.com/mthx/karma-error-reporting-issue
- npm install
- npm run test-jasmine
- npm run test-karma
- Note the failures from the latter have empty strings as URLs in the error message
Actual behavior
I had a test that ultimately boiled down to the following Jasmine expectation:
As the failure message, I get:
This was quite puzzling and a pain to isolate to karma in my real scenario.
Expected behavior
Clear message as given by Jasmine directly:
I think this issue relates to the URL_REGEXP in Karma's reporter.js but I haven't dived deep enough to follow what's going on there.
Environment Details
karma --version):Karma version: 1.1.0
karma.config.jsfileMinimal jasmine config.
Steps to reproduce the behaviour