Skip to content
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

fix(gatsby-dev-cli): Include theme src directories #22147

Merged
merged 1 commit into from
Mar 10, 2020

Conversation

johno
Copy link
Contributor

@johno johno commented Mar 10, 2020

Themes aren't built/compiled like most packages in the gatsby monorepo so we shouldn't ignore their src directories. This now ensures that gatsby-dev --packages gatsby-theme-blog behaves as we'd expect.

Note: Right now the test is failing because the gatsby/src test is failing, I'd imagine because we're calling the add event directly which happens after the watchers. So, in all reality then, my tests aren't actually testing anything. Is there some way to test this functionality that I'm missing?

Edit: We opted to not test here because it would require digging deeply into the chokidar mocking.

@johno johno requested a review from a team as a code owner March 10, 2020 18:01
Themes aren't built/compiled like most packages in
the gatsby monorepo so we shouldn't ignore their
src directories.
Copy link
Contributor

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

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

LGTM! awesome job! 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants