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

Convert resolver tests to TypeScript #660

Merged

Conversation

karol-majewski
Copy link
Contributor

Relates to #582.

@karol-majewski karol-majewski requested a review from a team as a code owner August 20, 2018 21:00
@welcome
Copy link

welcome bot commented Aug 20, 2018

Thanks for opening this pull request! A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

Copy link
Contributor

@bkeepers bkeepers left a comment

Choose a reason for hiding this comment

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

@karol-majewski thanks for the pull request! One small request, but otherwise looks good!

src/resolver.ts Outdated
@@ -4,11 +4,13 @@ export const resolve = (appFnId: string, opts?: ResolveOptions) => {
opts = opts || defaultOptions
// These are mostly to ease testing
const basedir = opts.basedir || process.cwd()
const resolver = opts.resolver || require('resolve').sync
const resolver: Resolver = opts.resolver || require('resolve').sync
Copy link
Contributor

Choose a reason for hiding this comment

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

Could require('resolve').sync get converted to import { sync } from 'resolve' and moved to the top?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely. Done 👍

@bkeepers bkeepers merged commit 96b186a into probot:master Aug 24, 2018
@welcome
Copy link

welcome bot commented Aug 24, 2018

Thanks for your contribution to probot! 🎉
Congrats!

@karol-majewski karol-majewski deleted the typescript-tests-rewrite-resolver branch August 24, 2018 14:34
@probotbot
Copy link

🎉 This PR is included in version 7.1.0 🎉

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants