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 the all.js test for the eslint-plugin #211

Merged
merged 2 commits into from
Feb 12, 2021
Merged

Conversation

vsumner
Copy link
Contributor

@vsumner vsumner commented Feb 11, 2021

Description

The all.js test works because it ignored the .graphql files included in the fixture and didn't apply the .graphql rules.
This PR updates the fixture and the all.test.js execution to include the graphql files.

Type of change

  • @shopify/eslint-plugin Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish a new version for these changes)

@@ -1,5 +1,6 @@
query LintErrorFooQuery {
query AllTestQuery {
Copy link
Contributor

Choose a reason for hiding this comment

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

🏅

`--config ${fixtureFile('all/.eslintrc.js')} ${fixtureFile('all')}`,
`--ext .js,.graphql --ignore-pattern "**/all/build/*" --config ${fixtureFile(
'all/.eslintrc.js',
)} ${fixtureFile('all')}`,
),
).toBe('');
}, 8000);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we worry this timeout mike make our tests flaky at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't add it but I assume it was expanded to stop it from being flakey in CI environments.

@vsumner vsumner merged commit 0d6ede3 into main Feb 12, 2021
@vsumner vsumner deleted the fix-eslint-plugin-all-test branch February 12, 2021 14:09
@vsumner vsumner temporarily deployed to production February 12, 2021 17:38 Inactive
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.

3 participants