push
github
Improve stories markdown parsing (#2602) * Install new dependencies * Move RemoveLast utility type to TypeHelper * Create more tuple manipulation types Also added comments for documentation. * Remove unnecessary useEffect Based on testing, this is never run. * Rename children prop to content * Improves naming abstraction * Reflects true purpose * Prevent conflicts with React children prop * Remove unnecessary explicit typing * Reduce unnecessary rerendering of UserBlogContent Removes the unnecessary rerender after clicking the run button, thereby persisting the output on the screen. * Add type export for SourceBlockProps * Create ReplaceTypeAtIndex utility type * Create logic to handle custom components at AST level * Replace old markdown renderer with new logic * Update default story to match new behavior * Remove old react-markdown dependency * Fix failing snapshots * Refactor regex to use helper function Drastically improves code readability. * Update jest configuration * Remove unused module regexes * Add more module regexes * Update some module regexes to be more specific * Revert "Fix failing snapshots" This reverts commit 06cc1678c. * Fix indent * Remove extraneous comments
2168 of 6726 branches covered (32.23%)
Branch coverage included in aggregate %.
2 of 14 new or added lines in 3 files covered. (14.29%)
1 existing line in 1 file now uncovered.5733 of 14384 relevant lines covered (39.86%)
19.19 hits per line