{ [CordovaError: Current working directory is not a Cordova-based project.]
name: 'CordovaError',
message: 'Current working directory is not a Cordova-based project.' }
I've had this happen to me when the directory wasn't completely empty. Even if you have a .git directory inside where you ran that command, it will fail.
I get this error when i run
yo ionic test