Skip to content

Commit 06e8771

Browse files
committed
CCM-10981: simplify unit.sh
1 parent 6bdcc86 commit 06e8771

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

scripts/tests/unit.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -euo pipefail
44

55
cd "$(git rev-parse --show-toplevel)"
66

7-
# read optional first arg; empty means "run all workspaces"
87
WORKSPACE="${WORKSPACE:-}"
98

109
# This file is for you! Edit it to call your unit test suite. Note that the same
@@ -21,17 +20,5 @@ WORKSPACE="${WORKSPACE:-}"
2120
# tasks in scripts/test.mk.
2221

2322
# run tests
24-
if [[ -n "$WORKSPACE" ]]; then
25-
npm run test:unit --workspace="$WORKSPACE"
26-
else
27-
npm run test:unit --workspaces
23+
npm run test:unit --workspace="$WORKSPACE"
2824

29-
# merge coverage reports
30-
mkdir -p .reports
31-
TMPDIR="./.reports" ./node_modules/.bin/lcov-result-merger \
32-
"**/.reports/unit/coverage/lcov.info" \
33-
".reports/lcov.info" \
34-
--ignore "node_modules" \
35-
--prepend-source-files \
36-
--prepend-path-fix "../../.."
37-
fi

0 commit comments

Comments
 (0)