ember-exam: TypeError: Cannot read property 'on' of undefined
I ran ember install ember-exam on a relatively simple Ember addon project, then tried out ember exam and this seems to crash when trying to run the tests:
Randomizing tests with seed: false
Environment: test
cleaning up...
/Users/tbieniek/Code/qunit-console-grouper/node_modules/ember-exam/lib/commands/exam.js:358
this.process.on('processExit', browserFailureHandler.bind(this));
^
TypeError: Cannot read property 'on' of undefined
at BrowserTestRunner.events.tests-start (/Users/tbieniek/Code/qunit-console-grouper/node_modules/ember-exam/lib/commands/exam.js:358:22)
at Socket.emit (events.js:203:15)
at /Users/tbieniek/Code/qunit-console-grouper/node_modules/socket.io/lib/socket.js:528:12
at process._tickCallback (internal/process/next_tick.js:61:11)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (1 by maintainers)
I was able to reproduce the error. I will put a pr for a fix and have it release asap
fyi, a pr is being worked on and reviewed https://github.com/ember-cli/ember-exam/pull/388
@jherdman so the problem is this.process is not available when a browser is launched manually. I will put a pr up to validate whether
this.processis available when registering events forprocessExitandprocessError.@MichalBryxi ember-exam@4.0.3 has an issue, do you mind trying v4.0.4 and let me know if you are seeing the same issue?