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

chore: add tests to static-query filepaths #25978

Merged
merged 2 commits into from
Jul 24, 2020

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jul 23, 2020

Description

Windows static query paths generation is broken. Gatsby uses slash utility to convert component paths to unix based ones. Webpack has windows file paths so they never match.

I added a simple test to it to illustrate the problem and the fix. The feature itself has great e2e coverage so that's why this is just a simple test.

Documentation

Related Issues

Fixes #25909
Fixes #25920
Fixes #25949

@wardpeet wardpeet requested a review from a team as a code owner July 23, 2020 18:20
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 23, 2020
@wardpeet wardpeet marked this pull request as draft July 23, 2020 18:21
@wardpeet wardpeet added topic: StaticQuery status: needs core review Currently awaiting review from Core team member and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 23, 2020
@wardpeet wardpeet marked this pull request as ready for review July 23, 2020 19:23
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

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

This is lovely. Thank you for catching a tricky issue and fixing it! I need to get me a windows machine 😅

@sidharthachatterjee sidharthachatterjee added bot: merge on green Gatsbot will merge these PRs automatically when all tests passes and removed status: needs core review Currently awaiting review from Core team member labels Jul 24, 2020
@gatsbybot gatsbybot merged commit 5e78b4f into gatsbyjs:master Jul 24, 2020
@wardpeet wardpeet deleted the fix/static-query-windows branch July 24, 2020 09:09
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
3 participants