Cannot read property 'blockUntilReporterExits' of undefined
I receive this error when I follow the mocha example. I have made a PR to solve the problem, but I believe the source of the issue is approvals\lib\Providers\BeforeEachVerifierBase.js It's call to FileApprover.verify(namer, writer, reporterFactory); doesn't pass in any options and GenericDiffReporterBase.report (and other reporters) are written as if it did.
sorry I don't know how to link to a PR. This is my attempt: https://github.com/approvals/Approvals.NodeJS/pull/123
Thank you for logging this. I am getting this problem too.
I found a workaround for this, which was to revert from 4.0.0-beta.1 to 3.0.5
So using this in package.json:
"approvals": "^3.0.5",