-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add mocking of all decorators in storyshots #1244
Conversation
e8a546f
to
6358e03
Compare
Codecov Report
@@ Coverage Diff @@
## 1220-kitchen-sink #1244 +/- ##
=====================================================
- Coverage 13.74% 13.66% -0.09%
=====================================================
Files 207 207
Lines 4633 4662 +29
Branches 582 575 -7
=====================================================
Hits 637 637
- Misses 3494 3542 +48
+ Partials 502 483 -19
Continue to review full report at Codecov.
|
Which decorators were causing errors? I don't know if mocking them is what we want to do. As per the trichotomy here:
Is it addon-info that's the problem? That's an "inspector" that actually modifies things, but we should fix that |
@ndelangen I see @tmeasday 's point. I think this is a really clever pattern but we shouldn't use it until we need it, and it sounds like once we fix addon-info (per #1147) then we probably don't need this pattern. I propose we keep this in our back pocket for now. What do you think? |
Hey @tmeasday If you want to reject this, that's fine. If you want to suggest some other way of fixing the unit tests in the branch this PR was targeting? |
@ndelangen - AFAICT, the errors on that branch are the same as the ones on #1259, is that correct? The last failing build was https://travis-ci.org/storybooks/storybook/builds/241898626?utm_source=github_status&utm_medium=notification which has the same two errors I posted about here: #1259 (comment) I think we need to get to the bottom of whether npm@5 linking / lerna is actually working. My suspicion is that it is not, in general. |
Ok, the larger issue is: #1286 I don't think there's much point in mocking out the things we are trying to test. Let's just disable these tests until we resolve the above. |
Issue: -unittest for storyshots is failing-
What I did
I added code to mock storybook addons during storyshots.
How to test
run
npm test