Skip to content

Test/dry convert rules 142 #213

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

Merged

Conversation

MrCube42
Copy link
Contributor

@MrCube42 MrCube42 commented Oct 6, 2019

PR Checklist

Overview

Refactored convertRules.test.ts to be more DRY.

  • Started by extracting creation of sample ts-lint rule into local function (severity is parametrized).
  • Followed by extracting the test setup including converters and mergers.
  • Last step was to parametrize converters and mergers.

I'm a bit unsure whether last commit (17963b5) is a bit too much. Up until commit before (2426714) leaves a bit more configuration in the tests itself but will be more flexible in the future.

@JoshuaKGoldberg @egiurleo Any preferences?

@JoshuaKGoldberg
Copy link
Member

The end-to-end tests were broken on master. I fixed them and merged into this branch, and will make them less brittle (#216). Sorry if that was confusing!

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

LGTM. Will defer to @egiurleo! 😄

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for reviewer Waiting for a maintainer to review label Oct 6, 2019
Copy link
Contributor

@egiurleo egiurleo 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 awesome! Thank you so much for doing this!

@JoshuaKGoldberg JoshuaKGoldberg removed the status: waiting for reviewer Waiting for a maintainer to review label Oct 6, 2019
@JoshuaKGoldberg JoshuaKGoldberg merged commit a07f475 into typescript-eslint:master Oct 6, 2019
@MrCube42 MrCube42 deleted the test/dry-convert-rules_142 branch October 13, 2019 21:53
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.

DRY up convertRules.test.ts
3 participants