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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add development server e2e for gatsby #721

Merged
merged 3 commits into from Jan 29, 2020
Merged

Conversation

kevin940726
Copy link
Contributor

@kevin940726 kevin940726 commented Jan 22, 2020

What's the problem this PR addresses?

Related to #368 and #689. Test against development build (yarn start) for gatsby app. Which includes some development only loaders like eslint-loader.

How did you fix it?

Since gatsbyjs/gatsby#20629 has landed and released, it should fix the test now.

There are still some plugins that are not supported yet, one would be gatsbyjs/gatsby#20638. We'll make another PR to make the test more comprehensive after upstream fixes the issue.

I also fix a bug in rollup e2e test where I accidentally use the wrong command 馃槥.

@kevin940726
Copy link
Contributor Author

kevin940726 commented Jan 22, 2020

Hmmm, wait, should we also update our gatsby dependency? Would it use the latest version 馃?

Oh shoot, the test is wrong. Will update soon.

@kevin940726
Copy link
Contributor Author

@arcanis I believe this PR is ready for review! We're still waiting for the gatsby team to review the PR for fixing plugin-mdx though (should I ping them again 馃 ?)

@@ -87,7 +87,7 @@ jobs:
echo "import answer from 'the-answer'; import _ from 'lodash';" | tee src/main.js

yarn rollup -c
cat dist/bundle.js | grep -v "lodash"
! cat dist/bundle.js | grep "lodash"
Copy link
Member

Choose a reason for hiding this comment

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

TIL ! applies to the whole pipe in Bash, not only the command that follows 馃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yah I couldn't find any doc on this either. I just tried it. Hope that I haven't encounter any edge case 馃槄

@arcanis arcanis merged commit 6799e59 into yarnpkg:master Jan 29, 2020
@arcanis
Copy link
Member

arcanis commented Jan 29, 2020

Good to go, thanks a lot! I think it's fair to post a small ping, but until they get a chance to merge your PR we can go ahead and merge a builtin package extensions 馃憤

@kevin940726 kevin940726 deleted the gatsby-e2e branch January 29, 2020 11:51
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.

None yet

2 participants