From 3d53847f30be8feb3b3ea5a8c504ec2e7181ae4a Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 3 Feb 2020 07:00:06 -0800 Subject: [PATCH] Return exit code in Linux unit tests Fixes #2681 --- azure-pipelines.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f6f892c7..e641e716 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,9 @@ jobs: displayName: 'Install dependencies and build' - script: | yarn test-unit-coverage --forbid-only + EXIT_CODE=$? ./node_modules/.bin/nyc report --reporter=cobertura + exit $EXIT_CODE displayName: 'Unit tests' - script: yarn lint displayName: 'Lint'