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(mocha): add an additional check for missing reporterOptions #440

Merged

Conversation

sskorol
Copy link
Contributor

@sskorol sskorol commented May 12, 2022

Context

Fixed the edge case when reporterOptions can be missing by adding an alternative empty object, which can be correctly destructured with a default value to resultsDir.

Fixes #430

Checklist

@github-actions github-actions bot added the theme:mocha Mocha related issue label May 12, 2022
@sskorol sskorol changed the title GITHUB-430: add an additional check for missing reporterOptions fix(mocha): add an additional check for missing reporterOptions May 12, 2022
@baev baev added the type:bug Something isn't working label May 13, 2022
Fixed an issue when `reporterOptions` can be missing by adding an alternative empty object, which can be correctly destructured with a default value to `resultsDir`.

Fixes allure-framework#430
@sskorol sskorol force-pushed the GITHUB-430-fix-missing-resultsdir branch from e4a0a37 to e9a9938 Compare May 13, 2022 06:16
@baev baev merged commit 7fd26db into allure-framework:master May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:mocha Mocha related issue type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot destructure property resultsDir of opts.reporterOptions
2 participants