mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
minor: Add static/shared/js to not-enforced logic.
This is an expedient fix--we should possibly just require all modules in static/shared to be 100% covered.
This commit is contained in:
@@ -23,6 +23,7 @@ USAGE = '''
|
||||
'''
|
||||
|
||||
enforce_fully_covered = {
|
||||
'static/shared/js/typeahead.js',
|
||||
'static/shared/js/typing_status.js',
|
||||
|
||||
'static/js/activity.js',
|
||||
@@ -208,7 +209,7 @@ def enforce_proper_coverage(coverage_json: Any) -> bool:
|
||||
|
||||
coverage_not_enforced = False
|
||||
for path in coverage_json:
|
||||
if '/static/js/' in path:
|
||||
if '/static/js/' in path or '/static/shared/js' in path:
|
||||
relative_path = os.path.relpath(path, ROOT_DIR)
|
||||
line_coverage = coverage_json[path]['s']
|
||||
line_mapping = coverage_json[path]['statementMap']
|
||||
|
||||
Reference in New Issue
Block a user