Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug "Cannot read property 'blockUntilReporterExits' of undefined" #123

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DanKaplanSES
Copy link

@DanKaplanSES DanKaplanSES commented Sep 21, 2021

Description

Perhaps I misunderstanding something in the readme, because I feel like most should be running into this (it's a bug on the latest release): when the options in lib/FileApprover.js are undefined, you get an error trying to boot up the reporter:

Error raised by reporter [Meld]: TypeError: Cannot read property 'blockUntilReporterExits' of undefined

I received the same error with the Visual Studio code reporter.

I do think this change should be there, because earlier in the file it checks if options is undefined.

The solution

I pass an empty object if options is undefined. Normally I would write a failing test for this, but I am at work at the moment. I can add that later.

 - Error raised by reporter [...]: TypeError: Cannot read property 'blockUntilReporterExits' of undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant