Skip to content

Commit e1de91e

Browse files
committed
ci: Exclude build tooling (resources/) from coverage
resources/buildConfigDefinitions.js is a build-time codegen tool, not shipped runtime code. Its generation pipeline only runs on direct execution (require.main === module), so it can't be exercised by the test suite, and it only exports mapperFor. Measuring it reports ~19% and drags the project coverage number down for code that isn't part of the product. Exclude resources/** from nyc instrumentation.
1 parent 7e9d53a commit e1de91e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.nycrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"text-summary"
55
],
66
"exclude": [
7-
"**/spec/**"
7+
"**/spec/**",
8+
"resources/**"
89
]
910
}
1011

0 commit comments

Comments
 (0)