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

ts-migration/valid-expect #387

Merged
merged 1 commit into from Aug 12, 2019
Merged

ts-migration/valid-expect #387

merged 1 commit into from Aug 12, 2019

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Aug 12, 2019

chore(valid-expect): convert to typescript

Closes #333

@G-Rath G-Rath requested a review from SimenB August 12, 2019 11:41
'test("valid-expect", () => expect(Promise.reject(2)).resolves.not.toBeDefined());',
'test("valid-expect", () => expect(Promise.reject(2)).rejects.not.toBeDefined());',
// 'test("valid-expect", () => expect(Promise.reject(2)).not.resolves.toBeDefined());',
Copy link
Member

Choose a reason for hiding this comment

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

?

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 left there here commented out b/c the whole thing was a mess, and I didn't know what the & wasn't valid :)

Case & point, up until now we were testing the the exact opposite of the correct (not.resolve) was correct.

Feel free to remove them if you want, but I'll def be circling back, so they won't be there for ever :)

src/rules/__tests__/valid-expect.test.ts Show resolved Hide resolved
@SimenB
Copy link
Member

SimenB commented Aug 12, 2019

This turned out pretty clean, I love it! 😀

@SimenB SimenB merged commit ce86d4a into master Aug 12, 2019
@SimenB SimenB deleted the ts-migration/valid-expect branch August 12, 2019 11:59
@G-Rath
Copy link
Collaborator Author

G-Rath commented Aug 12, 2019

Just wait until we've got all the rules converted, and I do my second pass over everything ;)

@SimenB
Copy link
Member

SimenB commented Aug 12, 2019

🎉 This PR is included in version 22.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants