-
Notifications
You must be signed in to change notification settings - Fork 950
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
Convert resolver tests to TypeScript #660
Conversation
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. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely. Done 👍
🎉 This PR is included in version 7.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Relates to #582.