File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,14 @@ afterEach(() => {
5151 cy . log ( `Used: ${ formatBytes ( mem . usedJSHeapSize ) } ` ) ;
5252 cy . log ( `Total: ${ formatBytes ( mem . totalJSHeapSize ) } ` ) ;
5353 cy . log ( `Limit: ${ formatBytes ( mem . jsHeapSizeLimit ) } ` ) ;
54+
55+ console . log ( "=== Browser Tab Memory ===" ) ;
56+ console . log ( `Used: ${ formatBytes ( mem . usedJSHeapSize ) } ` ) ;
57+ console . log ( `Total: ${ formatBytes ( mem . totalJSHeapSize ) } ` ) ;
58+ console . log ( `Limit: ${ formatBytes ( mem . jsHeapSizeLimit ) } ` ) ;
5459 } else {
5560 cy . log ( "Browser memory API not available" ) ;
61+ console . log ( "Browser memory API not available" ) ;
5662 }
5763 } ) ;
5864} ) ;
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def test_run_cypress(auth_session):
262262 test_spec_arg = f" --spec '{ specs_str } ' "
263263
264264 print ("Running Cypress tests with command" )
265- node_options = "--max-old-space-size=6000 "
266- electron_args = "ELECTRON_EXTRA_LAUNCH_ARGS=\" --js-flags='--max-old-space-size=4096 ' --disable-dev-shm-usage --disable-gpu\" "
265+ node_options = "--max-old-space-size=500 "
266+ electron_args = "ELECTRON_EXTRA_LAUNCH_ARGS=\" --js-flags='--max-old-space-size=9596 ' --disable-dev-shm-usage --disable-gpu\" "
267267 command = f'{ electron_args } NO_COLOR=1 NODE_OPTIONS="{ node_options } " npx cypress run { record_arg } { test_spec_arg } { tag_arg } --config numTestsKeptInMemory=2'
268268 print (command )
269269 # Add --headed --spec '**/mutations/mutations.js' (change spec name)
You can’t perform that action at this time.
0 commit comments