taras42 / karma-jasmine-html-reporter

A Karma plugin. Dynamically displays tests results at debug.html page
MIT License
44 stars 17 forks source link

Exception thrown when using jasmine 3.0.0 #31

Closed dfederm closed 6 years ago

dfederm commented 6 years ago

After upgrading to jasmine 3.0.0 I'm seeing:

adapter.js:24 Uncaught TypeError: env.catchExceptions is not a function
    at adapter.js:24
    at adapter.js:58

The line that's throwing is:

    env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);

According to the release notes:

Env.catchExceptions and the query param are going away, in favor of a more fully functional fail fast handler

Related answer from the jasmine developer.

dfederm commented 6 years ago

Fixed over on my repo: https://github.com/dfederm/karma-jasmine-html-reporter And the fix is pushed to npm as v1.0.0: https://www.npmjs.com/package/karma-jasmine-html-reporter