Added custom test function for storyshots#1035
Conversation
| (pkg.devDependencies && pkg.devDependencies['@kadira/react-native-storybook']) || | ||
| (pkg.dependencies && pkg.dependencies['@kadira/react-native-storybook']); | ||
|
|
||
| const hasDependency = function(name) { |
|
@tmeasday there are merge conflicts |
|
Let me rebase |
5df15fa to
48ecba6
Compare
Codecov Report
@@ Coverage Diff @@
## master #1035 +/- ##
========================================
Coverage ? 0%
========================================
Files ? 1
Lines ? 5
Branches ? 1
========================================
Hits ? 0
Misses ? 4
Partials ? 1
Continue to review full report at Codecov.
|
48ecba6 to
6c971f2
Compare
|
LMK if you want me to rebase this onto #1031 |
|
|
||
| initStoryshots(); | ||
|
|
||
| // initStoryshots({ test: renderOnly }); |
There was a problem hiding this comment.
If this is an example of something that could be done for user's reference, maybe leave a comment? Otherwise, just remove it.
There was a problem hiding this comment.
It's basically a way of testing renderOnly (until we figure out a better testing strategy). I'll try to make it better.
There was a problem hiding this comment.
I decided to just get rid of it for now.
838ef89 to
5b2830f
Compare
5b2830f to
b00d4a4
Compare
test function for storyshots
test function for storyshotstest function for storyshots
|
View your CI Pipeline Execution ↗ for commit b00d4a4.
☁️ Nx Cloud last updated this comment at |
Issue: #1034
What I did
Branched off #971, this pulls the default implementation of the test function into a
snapshotexport, adds arenderOnlyexport, and allows you to pass your own function in.How to test
In the
test-craapp, you can try the default, passing inrenderOnlyor your own function that asserts/throws.