Merge pull request #12813 from keymanapp/chore/common/web/types/remove-c8rc-json-and-merge-exclusions-into-package-json

chore(common/web): remove .c8rc.json from types and merge exclusions into package.json
This commit is contained in:
Dr Mark C. Sinclair 2024-12-16 18:42:58 +07:00 committed by GitHub
commit 09f061432f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 14 deletions

View file

@ -1,12 +0,0 @@
{
"exclude": [
"src/keyboard-object.ts",
"src/lexical-model-types.ts",
"src/outputTarget.interface.ts",
"src/*.d.ts",
"src/main.ts",
"src/schemas/*",
"src/schema-validators.ts",
"src/schemas.ts"
]
}

View file

@ -92,7 +92,7 @@ function do_test() {
readonly C8_THRESHOLD=60
# Excludes are defined in .c8rc.json
# Excludes are defined in package.json
c8 -skip-full --reporter=lcov --reporter=text --lines $C8_THRESHOLD --statements $C8_THRESHOLD --branches $C8_THRESHOLD --functions $C8_THRESHOLD mocha ${MOCHA_FLAGS} "${builder_extra_params[@]}"
builder_echo warning "Coverage thresholds are currently $C8_THRESHOLD%, which is lower than ideal."
builder_echo warning "Please increase threshold in build.sh as test coverage improves."

View file

@ -76,7 +76,13 @@
"src/keyman-touch-layout/keyman-touch-layout-file-writer.ts",
"src/osk/osk.ts",
"src/schemas/*",
"tests/"
"tests/",
"src/keyboard-object.ts",
"src/outputTarget.interface.ts",
"src/*.d.ts",
"src/main.ts",
"src/schema-validators.ts",
"src/schemas.ts"
]
},
"sideEffects": false