gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
687 stars 62 forks source link

fix: fix conflicting overwriteCommand type definition #884

Closed shadowusr closed 5 months ago

shadowusr commented 5 months ago

Existing overwriteCommand definition conflicts with wdio's definition due to an incompatibility between origCommand types: wdio's definition has return type of Promise<... | never>, while ours has Promise<any>. Since never is not assignable to any, it doesn't work. This PR replaces Promise<any> with just any.