console.error('button element:', document.querySelector('button'));
DOM nodes, especially those containing react fibers, are strigified to a very long strings (1.5MB):

This results in the whole batch not being printed in the terminal!
It should be stringified (e.g. using object-inspect ) to something like <button class="main" data-test-id="buttom_main">...</button>.
Also:
console.log( Promise.resolve('hello'))
is being printed as {} instead of something like Promise [Promise] {} or even Promise [Promise] "hello".