Skip to content

Commit 6ac98a3

Browse files
exclude dist from coverage (#1340)
1 parent 69bf555 commit 6ac98a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nyc.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
module.exports = {
66
all: true,
77
"check-coverage": false, // Will be enabled after reaching 50% coverage: https://github.com/Real-Dev-Squad/website-backend/issues/493
8-
exclude: ["test/**", "mockdata/**", "docs/**", "public/**"],
8+
exclude: ["test/**", "mockdata/**", "docs/**", "public/**", "dist/**"],
99
reporter: ["text", "lcov", "text-summary"],
1010
reportDir: ".coverage",
1111
tempDir: ".coverage",

scripts/tests/testUnit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ json=$(node -e "console.log(require('config').get('firestore'))")
88
project_id=$(echo $json | grep -o '"project_id":[^,}]*' | cut -d':' -f2 | tr -d '"' | tr -d '[:space:]')
99

1010
echo 'Start firestore emulator and run unit tests:'
11-
firebase emulators:exec 'nyc --x=controllers --x=test --x=docs --recursive --x=mockdata mocha test/unit/**' --project=$project_id
11+
firebase emulators:exec 'nyc --x=controllers --x=test --x=docs --recursive --x=mockdata --x=dist mocha test/unit/**' --project=$project_id

0 commit comments

Comments
 (0)