Below is a simplified snippet from my azure build pipeline:
- task: Npm@1 name: ReactTests continueOnError: