Skip to content

Conversation

@G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jul 19, 2019

This might cause issues with #310 but these three functions are the only ones from tsUtils that are required for about three or four rules, so getting these across the line will let me land those straight away :)

@SimenB
Copy link
Member

SimenB commented Jul 19, 2019

Coverage isn't happy... Would it be quick to port a rule which uses these?

@SimenB
Copy link
Member

SimenB commented Jul 19, 2019

I've merged #310 as well, fwiw. Doesn't seem like it created a merge conflict 🙂

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jul 19, 2019

@SimenB done - I've pushed no-jasmine-globals :)

@SimenB
Copy link
Member

SimenB commented Jul 19, 2019

Tests and coverage is failing on ci, btw

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jul 19, 2019

@SimenB this is good to go!

I pulled in another rule (no-disabled-tests) to help improve the coverage, along w/ adding a couple more tests & re-arranging some type-narrowing if conditions so that they get hit before non-narrowing ones :)

Everything's now back at 100% coverage, and utils.js has gotten smaller since those two rules were the only ones using some of the methods :D

output: 'jest.setTimeout(5000);',
},
{
code: 'jasmine.DEFAULT_TIMEOUT_INTERVAL = function() {}',
Copy link
Member

Choose a reason for hiding this comment

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

is this valid jasmine code?

Copy link
Member

Choose a reason for hiding this comment

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

I'm happy to warn on it either way

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think so, but it's technically something that could be done. Eitherway, it triggers the previously uncovered branch :)

@SimenB SimenB merged commit 7af272d into jest-community:reapply-ts Jul 20, 2019
@G-Rath G-Rath deleted the ts-migration/convert-some-utils-functions branch July 20, 2019 07:56
@SimenB SimenB mentioned this pull request Jul 20, 2019
35 tasks
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.

2 participants