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/warning adjustment #1170

Merged
merged 5 commits into from
Aug 21, 2019
Merged

Fix/warning adjustment #1170

merged 5 commits into from
Aug 21, 2019

Conversation

iamstarkov
Copy link
Member

Currently, it is confusing to parse it because investigation pointers (rule, Component)
are in the same flow as warning's text itself. This subtle change aims
to put focus on important parts of the warning.

Before:
Warning: [JSS] Could not find the referenced rule icon in Button, Themed, Static.

After
Warning: [JSS] Could not find the referenced rule "icon" in "Button, Themed, Static".

Currently, it is confusing to parse it because investigation pointers (rule, Component)
are in the same flow as warning's text itself. This subtle change aims
to put focus on important parts of the warning.

Before:
  Warning: [JSS] Could not find the referenced rule icon in Button, Themed, Static.

After
  Warning: [JSS] Could not find the referenced rule "icon" in "Button, Themed, Static".
@iamstarkov iamstarkov requested a review from HenriBeck as a code owner August 15, 2019 09:35
@iamstarkov
Copy link
Member Author

I dont know why my test is failing, thus I will appreciate guidance. rest of the test I assume are failing from the master

@@ -405,7 +405,7 @@ describe('jss-plugin-nested', () => {
expect(spy.callCount).to.be(1)
expect(
spy.calledWithExactly(
'Warning: [JSS] Could not find the referenced rule "b" in ".a-id {\n & $b: [object Object];\n}."'
'Warning: [JSS] Could not find the referenced rule "b" in ".a-id {\n & $b: [object Object];\n}".'
Copy link
Member Author

Choose a reason for hiding this comment

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

I see

@kof kof merged commit 7f1fe82 into master Aug 21, 2019
@kof
Copy link
Member

kof commented Aug 21, 2019

merged,thx

@iamstarkov iamstarkov deleted the fix/warning-adjustment branch August 21, 2019 16:52
@iamstarkov
Copy link
Member Author

🙏

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.

3 participants