computmaxer / karma-jspm

Other
74 stars 50 forks source link

Prevent SystemJS from swallowing helpful errors #7

Closed maxwellpeterson-wf closed 10 years ago

maxwellpeterson-wf commented 10 years ago

Should be merged after #6 as it was branched off of that

Problem

I was not attaching an error callback to the System.import promises that load the test specs. Turns out this causes SystemJS to silently fail when it came across a require statement that it didn't like. This would cause the promise never to resolve and as a result the tests would never run (karma.start() only gets called when all the promises resolve) - making debugging very difficult.

Solution

Add an error handler that throws any errors SystemJS has.

trentgrover-wf commented 10 years ago

+10

trentgrover-wf commented 10 years ago

@charliekump-wf merge-ready

charliekump-wf commented 10 years ago

QA Resource Approval: +1

Merging into master.