Skip to content

Fix/warning adjustment#1170

Merged
kof merged 5 commits intomasterfrom
fix/warning-adjustment
Aug 21, 2019
Merged

Fix/warning adjustment#1170
kof merged 5 commits intomasterfrom
fix/warning-adjustment

Conversation

@iamstarkov
Copy link
Copy Markdown
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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
Member

kof commented Aug 21, 2019

merged,thx

@iamstarkov iamstarkov deleted the fix/warning-adjustment branch August 21, 2019 16:52
@iamstarkov
Copy link
Copy Markdown
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