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

Gatsby cli develop tests #22697

Merged
merged 2 commits into from
Mar 31, 2020
Merged

Gatsby cli develop tests #22697

merged 2 commits into from
Mar 31, 2020

Conversation

blainekasten
Copy link
Contributor

Description

Adds Integration tests for gatsby develop

  • Tests it starts a server on port :8000
  • Tests the log output

@blainekasten blainekasten requested a review from a team as a code owner March 31, 2020 19:40

beforeAll(() => removeFolder(`${cwd}/.cache`))
beforeAll(() => removeFolder(`${cwd}/public`))
afterAll(() => removeFolder(`${cwd}/.cache`))
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this both before and after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do it before just to make sure there wasn't some left over artifacts before. Like if some dev ran gatsby build or something in taht folder before the test. Then also clean up after.

Just trying to make the tests as idempotent as possible.

@madalynrose madalynrose added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Mar 31, 2020
Copy link
Contributor

@madalynrose madalynrose left a comment

Choose a reason for hiding this comment

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

this makes sense! hooray for more tests!

@gatsbybot gatsbybot merged commit ff51768 into master Mar 31, 2020
@delete-merged-branch delete-merged-branch bot deleted the gatsby-cli-develop-tests branch March 31, 2020 19:59
teleaziz added a commit to teleaziz/gatsby that referenced this pull request Apr 2, 2020
…y-starter-builder

* 'master' of github.com:gatsbyjs/gatsby: (24 commits)
  Added Fluiditype (gatsbyjs#22686)
  Add blog post with Gatsby LA video 2 - Dustin Schau (gatsbyjs#22736)
  Fix DatoCMS benchmarks (gatsbyjs#22761)
  chore(starters): add  gatsby-starter-reason-blog (gatsbyjs#22690)
  remove local domain (gatsbyjs#22729)
  remove local domain (gatsbyjs#22732)
  fix(gatsby-source-contentful): use request url for base64 image cache key (gatsbyjs#22745)
  Add blog post for community Q&A (gatsbyjs#22737)
  chore(gatsby-cli): use `gatsby clean` in tests to test `gatsby clean` (gatsbyjs#22739)
  Fix typo (gatsbyjs#22727)
  fix(gatsby): Support grouping by reserved keywords (gatsbyjs#22603)
  remove local domain (gatsbyjs#22723)
  docs: clarification about `.cache` and `public` persistance when using GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES (gatsbyjs#22720)
  chore(release): Publish
  fix(gatsby-plugin-google-gtag): OutboundLink Forward Ref (gatsbyjs#22705)
  [docs]Docs/Blog Frontmatter Documentation (gatsbyjs#22604)
  chore(gatsby): create single filter cache key generator (gatsbyjs#22716)
  chore(gatsby-cli): Add integration tests for `gatsby develop` (gatsbyjs#22699)
  create index.md (gatsbyjs#22671)
  Gatsby cli develop tests (gatsbyjs#22697)
  ...
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.

3 participants