Skip to content

Commit fb8b6b8

Browse files
committed
fix: web pack tests for ts projects
1 parent fc4b9ad commit fb8b6b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/webpack/hello_world_ts_tests.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_100_android_build_release_with_and_bundle_and_uglify(self):
160160
main_page_xml_size = File.get_size(os.path.join(base_path, "main-page.xml"))
161161
apk_size = File.get_size(Helpers.get_apk_path(app_name=self.app_name, config="release"))
162162

163-
assert 3500 < bundle_js_size < 3750, "Actual bundle_js_size is " + str(bundle_js_size)
163+
assert 4000 < bundle_js_size < 5000, "Actual bundle_js_size is " + str(bundle_js_size)
164164
assert 30 < starter_js_size < 50, "Actual starter_js_size is " + str(starter_js_size)
165165
assert 670000 < vendor_js_size < 680000, "Actual vendor_js_size is " + str(vendor_js_size)
166166
assert 1600 < main_page_xml_size < 2000, "Actual main_page_xml_size is " + main_page_xml_size
@@ -183,7 +183,7 @@ def test_100_ios_build_release_with_and_bundle_and_uglify(self):
183183
vendor_js_size = File.get_size(os.path.join(app_path, "app", "vendor.js"))
184184
main_page_xml_size = File.get_size(os.path.join(app_path, "app", "main-page.xml"))
185185
ipa_size = File.get_size(ipa_path)
186-
assert 3500 < bundle_js_size < 3750, "Actual bundle_js_size is " + str(bundle_js_size)
186+
assert 4000 < bundle_js_size < 5000, "Actual bundle_js_size is " + str(bundle_js_size)
187187
assert 30 < starter_js_size < 50, "Actual starter_js_size is " + str(starter_js_size)
188188
assert 685000 < vendor_js_size < 695000, "Actual vendor_js_size is " + str(vendor_js_size)
189189
assert 1600 < main_page_xml_size < 2000, "Actual main_page_xml_size is " + main_page_xml_size
@@ -261,7 +261,7 @@ def test_120_android_build_release_with_and_bundle_and_snapshot_and_uglify(self)
261261
main_page_xml_size = File.get_size(os.path.join(base_path, "main-page.xml"))
262262
apk_size = File.get_size(Helpers.get_apk_path(app_name=self.app_name, config="release"))
263263

264-
assert 3500 < bundle_js_size < 3750
264+
assert 4000 < bundle_js_size < 5000, "Actual bundle_js_size is " + str(bundle_js_size)
265265
assert 30 < starter_js_size < 50
266266
assert vendor_js_size == 0
267267
assert 1600 < main_page_xml_size < 2000
@@ -285,7 +285,7 @@ def test_120_ios_build_release_with_and_bundle_and_snapshot_and_uglify(self):
285285
vendor_js_size = File.get_size(os.path.join(app_path, "app", "vendor.js"))
286286
main_page_xml_size = File.get_size(os.path.join(app_path, "app", "main-page.xml"))
287287
ipa_size = File.get_size(ipa_path)
288-
assert 3500 < bundle_js_size < 3750
288+
assert 4000 < bundle_js_size < 5000, "Actual bundle_js_size is " + str(bundle_js_size)
289289
assert 30 < starter_js_size < 50
290290
assert 680000 < vendor_js_size < 700000, "Actual vendor_js_size is " + str(vendor_js_size)
291291
assert 1600 < main_page_xml_size < 2000

0 commit comments

Comments
 (0)