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

Reporter option maxDiffSize is ignored #208

Open
eliericha opened this issue Jul 22, 2024 · 0 comments
Open

Reporter option maxDiffSize is ignored #208

eliericha opened this issue Jul 22, 2024 · 0 comments

Comments

@eliericha
Copy link

Mocha supports a reporter option maxDiffSize that configures a threshold beyond which actual and expected strings are trimmed in the report (see Mocha documentation).

When mocha-junit-reporter is used, maxDiffSize is ignored and the report reverts to the default value of 8192.

After some investigation I was able to determine that the reason was that mocha-junit-reporter is assuming that all reporter options are intended for itself, and is not forwarding options to the base reporter implementation. That causes maxDiffSize to be ignored.

I'll submit a fix soon.

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

No branches or pull requests

1 participant