make-runnable
make-runnable copied to clipboard
Pretty print whole object, rather than truncating to [Object] ?
Hi, I want to test a function that returns an object, but it is only shallow printing the object.
ie given the following return object
{
"customerAccountsRs": {
"fullName": "Fred Single",
"account": [
{
"sortCodeAcctNum": "400216-00001001"
}
]
}
}
make-runnable only prints
{
customerAccountsRs: { fullName: 'Fred Single', account: [ [Object] ] }
}
Could you add this option? If not, if I made a PR, would you merge in? I notice #7 has languished for years, so not really up for putting in the effort if you are not gonna merge it
I've finally merged the old PR! Sorry about the delayed reply 😅 I'm back and here to stay.
But yeah @evilC - this sounds like a great idea. If you submit a PR - I'll merge.