Skip to content

Instantly share code, notes, and snippets.

@daniel12fsp
Created June 28, 2019 11:08
Show Gist options
  • Save daniel12fsp/f8eb178d59116ed644a93042e47753d0 to your computer and use it in GitHub Desktop.
Save daniel12fsp/f8eb178d59116ed644a93042e47753d0 to your computer and use it in GitHub Desktop.
How to execute yarn test in different project and fail if are error
ls -d folder-* | xargs -n1 -I {} sh -c 'yarn --cwd {} test|| exit 255'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment