'WebdriverIO - What is the right command to run WDIO

I just migrated to the newest version of WebdriverIO Earlier was using:


"./node_modules/.bin/wdio wdio.conf.js /test/specs/ui.js" as command into package.json file

Now based on the offical docs can see:


"npx wdio wdio.conf.js /test/specs/ui.js"

Which is most official command in order to execute specific script?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source