build: size-tracking test should support max-byte threshold (#30257)
Based on discussion that happened on the PR that introduced the size-tracking tool, we want to have another threshold for the raw byte difference. This allows us to better control for which changes the size-tracking tool should report a difference. See: https://github.com/angular/angular/pull/30070#discussion_r278332315 PR Close #30257
This commit is contained in:

committed by
Alex Rickabaugh

parent
de996c6d56
commit
741a5dc5f7
@ -32,8 +32,9 @@ js_size_tracking_test(
|
||||
":bundle",
|
||||
":bundle.golden_size_map.json",
|
||||
],
|
||||
diffThreshold = 3,
|
||||
goldenFile = "angular/packages/core/test/bundling/core_all/bundle.golden_size_map.json",
|
||||
maxByteDiff = 250,
|
||||
maxPercentageDiff = 15,
|
||||
sourceMap = "angular/packages/core/test/bundling/core_all/bundle.min.js.map",
|
||||
tags = [
|
||||
"ivy-only",
|
||||
|
Reference in New Issue
Block a user