Skip to content

Conversation

@ashmaroli
Copy link
Member

To contain repeated render logic in DraftNew.js, DocumentNew.js, PageNew.js.
However, this leaves the parent components as just shells that handle saving the draft and their own respective lifecycle methods which cannot be tested with just a shallow render.
(mount is currently not possible since there isn't a mechanism to pass a mock-store to the Metafields nested inside the CreateMarkdownPage component.)

@ashmaroli ashmaroli marked this pull request as ready for review December 16, 2019 06:56
Copy link
Member

@mertkahyaoglu mertkahyaoglu left a comment

Choose a reason for hiding this comment

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

PRs like this really satisfy me 💯

@ashmaroli ashmaroli merged commit 5c12570 into jekyll:master Dec 18, 2019
@ashmaroli ashmaroli deleted the markdown-page-creator branch December 18, 2019 05:20
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.

2 participants