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 duplicate error messages issue #33

Merged
merged 2 commits into from
Feb 25, 2016
Merged

Conversation

Turbo87
Copy link
Contributor

@Turbo87 Turbo87 commented Feb 25, 2016

This PR resolves #29

@IanVS
Copy link
Contributor

IanVS commented Feb 25, 2016

Awesome work tracking this down and making a fix! I saw that mocha has a --full-trace option. I wonder if that would also solve your issues.

Regardless, even though this is a workaround as you said, I'm fine with merging this since it's not practical to force everyone to use that mocha option (if it even works). Looks like you've fixed the tests. Good to go on your end?

@@ -31,7 +31,7 @@ function test(p, opts) {
) {
throw new Error(
chalk.red('Code did not pass lint rules') +
formatter(report.results)
formatter(report.results).replace(process.cwd() + '/', '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, do you think you could add a small comment to explain why the replace is needed? I can see this causing some head-scratching in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, done

This is a workaround for mochajs/mocha#2126 but since
relative paths are usually much nicer to look at it also has its own advantages
@Turbo87
Copy link
Contributor Author

Turbo87 commented Feb 25, 2016

Good to go on your end?

yes, I think this should solve the issue. might be good if you could verify that everything else still works properly though.

IanVS added a commit that referenced this pull request Feb 25, 2016
Fix duplicate error messages issue
@IanVS IanVS merged commit 25a80e0 into BadgeLabs:master Feb 25, 2016
@IanVS
Copy link
Contributor

IanVS commented Feb 25, 2016

Thanks!

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.

Errors are reported twice
2 participants