I am attempting to write a npm script which will run ava, and if everything passed, will run another (deploy) command.
How can you get the result of an ava test either in js, or piped to a file or following command?
The desired functionality would look like this:
npm run safe-deploy
Which would run ava and if everything passed (determined by either exit code or parsing the output) would run another cli command.
Has anyone done this before and if so what's the most suitable way to tackle it?