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

Drop separate err and warnings on cache #363

Merged
merged 1 commit into from
Oct 8, 2016
Merged

Drop separate err and warnings on cache #363

merged 1 commit into from
Oct 8, 2016

Conversation

SimenB
Copy link
Owner

@SimenB SimenB commented Oct 8, 2016

Fixes #357
Also a start for #356

It's mostly a subset of #274, so it's probably a bit rough around the edges

/cc @wojciechczerniak

@SimenB
Copy link
Owner Author

SimenB commented Oct 8, 2016

One of the tests seems to recurse infinitely, haven't been able to figure out why.

EDIT: It recursed becuase reporter called done.

Done now calls the reporter, so this should be s start for #358 as well

@SimenB
Copy link
Owner Author

SimenB commented Oct 8, 2016

There's a this.cache.messages that should be dropped, but I'll wait until I've refamiliarized myself with the code base

app.cache.rule = 'universal'
var msg = 'universal disallowed'
var expectedOutput = '\u001b[4mtestReporter\u001b[24m\n1:0 \u001b[90muniversal\u001b[39m \u001b[33mwarning\u001b[39m universal disallowed'
Copy link
Owner Author

Choose a reason for hiding this comment

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

should just use chalk.stripColor, but whatever. Can fix when we refactor tests

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yup, I expect tests to change a lot

@SimenB SimenB changed the base branch from master to v2 October 8, 2016 10:36
Copy link
Collaborator

@wojciechczerniak wojciechczerniak left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Just one thing. Why name the array violations? It's rather unusual. Shouldn't we stick with messages like ESLint do?

@SimenB
Copy link
Owner Author

SimenB commented Oct 8, 2016

@wojciechczerniak Good point! this.cache.messages is already a thing, but I'll call it messages after I finish up #358 😄

@SimenB SimenB merged commit 64e350e into v2 Oct 8, 2016
@SimenB SimenB deleted the join-errs-warns branch October 8, 2016 12:38
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.

2 participants