Code Monkey home page Code Monkey logo

wdio-gmail-service's People

Contributors

christian-bromann avatar dependabot[bot] avatar seanpoulter avatar wdio-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wdio-gmail-service's Issues

instance.onPrepare is not a function for CommonJS

If the CommonJS module system is used in the project there is a problem with the service hook and thus adding the command to the global browser.

ERROR @wdio/utils:shim: TypeError: instance.onPrepare is not a function at CJSGmailService.before (C:\Repos\automated-tests-wdio\node_modules\wdio-gmail-service\build\cjs\index.js:9:25) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Promise.all (index 3) at async executeHooksWithArgsShim (C:\Repos\automated-tests-wdio\node_modules\@wdio\utils\build\shim.js:107:20) at async Runner.run (C:\Repos\automated-tests-wdio\node_modules\@wdio\runner\build\index.js:99:9)

It looks like the bug was introduced in the commit just before the release.
ef8436a

I believe before must be used instead of onPrepare.

Temporarily I am using a forked version with a fix mateuszseczkowski@ac0b973.
If you are fine with that I can prepare a PR heading here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.