-
Notifications
You must be signed in to change notification settings - Fork 83
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
π¦ refactor(library): migrate entry point of all modules to lib/index.js #126
Conversation
When I run the tests, I only see one message
I'd expect to log messages for all the module imports? Also the message should clarify that it's about the
The tests should test for dedeprecations. I'd make a separate |
Let me take a look
I like it. Sounds good to me to clarify the named export way we are migrating to.
π To add |
β¦re on named exports does not t
π Applied major fix (the previous changes were completely wrong)
π Also tested manually creating dummy js files and running them with node. i.e.: const verify = require("./src/verify");
verify("1234", {}, "randomSignature") I've been researching a way to make Thanks @gr2m |
You do a great job splitting up your work in meaningful commits, makes it a joy to review your changes π
I would mock
The function const mock = simple.mock(process, "emitWarning").callFn(function () {});
// ...
t.equals(mock.callCount, 1) I think that should work π |
Thanks for the compliment @gr2m π
Let me give it a try! |
β¦eprecated entry point
β¦n importing them
It works! @gr2m π€ πΎ |
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.
great work π I've tested it against latest probot
and it still all works
π This PR is included in version 7.3.0 π The release is available on: Your semantic-release bot π¦π |
Thanks once again :) |
π Summary
lib/index.js
β± Motivation and Context
#113