-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
Description
Error log
Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json').
As suggested from the error log, foo.responseText was called, but foo.responseType === json.
How to reproduce?
This should happen whenever REQUEST_ASYNC === true && request.readyState === 4
Reason
When responseType === 'json', the handleCoverageResponse is still called and xhr.responseText would cause an error, and halt the whole test.
ok 138 Chrome 80.0 - [0 ms] - ember-qunit: Ember.onerror validation: Ember.onerror is functioning properly
Manual stack trace
Function that handles the /write-coverage and sends the data without response property
Function that creates the data sent as a response
Reactions are currently unavailable