You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the smart contract console.log(...) statements only get printed to the console output/logs of the era_test_node binary when it's running. If you run yarn hardhat test --network hardhat, it will start the era_test_node run command in the background and you cannot see the console logs from the node in-line with your tests.
It would be helpful to see the console.log lines from the Smart Contracts in-line with the console.log lines of the JavaScript tests of Hardhat
🖼️ Potential Solutions
Add a new console output mode for yarn hardhat test that will ONLY print out console.log lines from Smart Contracts. Then update the hardhat-zksync-node package to enable this flag by default AND tee the console output of the process running in the background.
Add a WSS endpoint where we push console.log lines. Update the hardhat-zksync-node to add a connection to the WebSocket endpoint and listen/print out any console.log lines that get emitted from era_test_node
The text was updated successfully, but these errors were encountered:
🌟 Feature Request
📝 Description
Currently, the smart contract
console.log(...)
statements only get printed to the console output/logs of theera_test_node
binary when it's running. If you runyarn hardhat test --network hardhat
, it will start theera_test_node run
command in the background and you cannot see the console logs from the node in-line with your tests.Hardhat Node repo: https://github.com/matter-labs/hardhat-zksync/tree/main/packages/hardhat-zksync-node
🤔 Rationale
It would be helpful to see the
console.log
lines from the Smart Contracts in-line with theconsole.log
lines of the JavaScript tests of Hardhat🖼️ Potential Solutions
yarn hardhat test
that will ONLY print outconsole.log
lines from Smart Contracts. Then update the hardhat-zksync-node package to enable this flag by default ANDtee
the console output of the process running in the background.console.log
lines. Update the hardhat-zksync-node to add a connection to the WebSocket endpoint and listen/print out any console.log lines that get emitted fromera_test_node
The text was updated successfully, but these errors were encountered: