"test:android": "cordova build android && open -a /Applications/Android\\ Studio.app platforms/android"
However, when Android Studio is installed via JetBrains Toolbox, it's at a different path, such as:
~/Library/Application\ Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android\ Studio.app
In such a case, this project as it's configured now will fail to build Android, as shown in npm-debug.log:
23 error Failed at the cordova-plugin-qrscanner-tests@ test:android script 'cordova build android && open -a /Applications/Android\ Studio.app platforms/android'.
Since JetBrains Toolbox doesn't have any special command line tools to look up the preferred version, the solution here is probably for the user to create an alias in the Applications directory.
The tests package.json looks for Android Studio at the installation path used when installed on its own: https://github.com/bitpay/cordova-plugin-qrscanner/blob/b62efb64801ba0b830f0aac556935c0978d2fb98/tests/project/package.json#L10
However, when Android Studio is installed via JetBrains Toolbox, it's at a different path, such as:
~/Library/Application\ Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android\ Studio.app
In such a case, this project as it's configured now will fail to build Android, as shown in npm-debug.log: