-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
File box #1915
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
File box #1915
Conversation
feat: change say() method response type from void to Message (wechaty#1866)
Merge wechaty/wechaty
Merge wechaty/wechaty
Merge wechaty master
Add reason for logout event (wechaty#1900)
Merge label and new friend search related methods
Merge master
Merge master
Merge master
Merge master
Merge mater
Merge master
Related issue: #1914 |
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.
Thanks for sending this improvement!
I believe it will be good after you revert all modifications in the unit tests because we need to mock the puppet to confirm the system works.
In |
Yes. As discussed with @windmemory, we should import FileBox from |
So this PR will be test green after |
No, it cannot. Because the unit test needs to instantiate a puppet for testing purposes. |
But now it can not pass the CI test, could you give me some advices for this case? |
Cloud you please make sure you can pass the unit tests in your local environment by running After that, I believe you can pass the CI. |
It can't, but the log of failed test show that: Error: Cannot find module 'file-box'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/suchang/Desktop/PROJECT/Test/testPadplus/wechaty/node_modules/wechaty-puppet-mock/src/puppet-mock.ts:21:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/suchang/Desktop/PROJECT/Test/testPadplus/wechaty/node_modules/wechaty-puppet-mock/src/index.ts:1:1) So I think this error maybe due to the |
Yes. So I'd like to suggest that you can keep the dependencies of the file-box for now. I will remove it by later. |
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.
Thanks for make it passing the CI!
I'm submitting a...
Checklist
Description
please describe the changes that you are making
for features, please describe how to use the new feature
please include a reference to an existing issue, if applicable
Does this PR introduce a breaking change?