Closed Bug 1441278 Opened 8 years ago Closed 8 years ago

Missing line numbers in failing unit tests

Categories

(Firefox :: New Tab Page, defect, P1)

defect

Tracking

()

RESOLVED FIXED
Firefox 60
Iteration:
60.4 - Mar 12
Tracking Status
firefox60 --- fixed

People

(Reporter: andreio, Assigned: andreio)

References

Details

Attachments

(2 files, 2 external files)

Attached image after.png —
See attachments.
Attached image before.png —
Notice the difference in the last line between the two screenshots. Rolling back pre-source-maps fixes it.
Flags: needinfo?(khudson)
After some investigation, I believe this is actually due to the upgrade to Karma 2.0 rather than the introduction of source maps with webpack. Installing karma 1.7.0 fixes the issue for me. Related issue here: https://github.com/karma-runner/karma/issues/2930 We could consider downgrading, or perhaps just wait for a fix to karma? Looks like someone was making some progress on it in the last couple of weeks
Flags: needinfo?(khudson)
Let's downgrade karma to 1.7.1
Assignee: nobody → andrei.br92
Iteration: --- → 60.4 - Mar 12
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Blocks: 1443928
Blocks: 1436228
Looks like this got fixed in karma 2.0.2: 01 05 2018 13:53:45.382:INFO [karma]: Karma v2.0.2 server started at http://0.0.0.0:9876/ expected { Object (id, icon, ...) } to have property 'id' of 'menuaction_pin', but got 'menu_action_pin' AssertionError@node_modules/chai/chai.js:9320:13 [3]</module.exports/Assertion.prototype.assert@node_modules/chai/chai.js:239:13 Compared to 2.0.0: 01 05 2018 13:50:37.619:INFO [karma]: Karma v2.0.0 server started at http://0.0.0.0:9876/ expected { Object (id, icon, ...) } to have property 'id' of 'menuaction_pin', but got 'menu_action_pin' AssertionError@base/node_modules/chai/chai.js?40e7aa72e9665366bfd82579520de4fb0754dfae:9320:13 [3]</module.exports/Assertion.prototype.assert@base/node_modules/chai/chai.js?40e7aa72e9665366bfd82579520de4fb0754dfae:239:13 I'll update karma in bug 1436228.
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: