gulp-qunit icon indicating copy to clipboard operation
gulp-qunit copied to clipboard

Output '{' in console will make test failed

Open jareguo opened this issue 7 years ago • 0 comments

if we run console.warn('..... function _Class() {....}') during test, we will got

events.js:141
      throw er; // Unhandled 'error' event
      ^
SyntaxError: Unexpected token o
    at Object.parse (native)
    at /Users/jareguo/firebox/fireball/node_modules/gulp-qunit/index.js:51:40
    at Array.forEach (native)

It seems like we should add use try catch here https://github.com/jonkemp/gulp-qunit/blob/master/index.js#L71

jareguo avatar Sep 08 '16 06:09 jareguo