Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print whole object, rather than truncating to [Object] ? #14

Open
evilC opened this issue Apr 4, 2022 · 2 comments
Open

Pretty print whole object, rather than truncating to [Object] ? #14

evilC opened this issue Apr 4, 2022 · 2 comments

Comments

@evilC
Copy link

evilC commented Apr 4, 2022

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

@super-cache-money
Copy link
Owner

super-cache-money commented Oct 10, 2022

I've finally merged the old PR! Sorry about the delayed reply 😅 I'm back and here to stay.

@super-cache-money
Copy link
Owner

But yeah @evilC - this sounds like a great idea. If you submit a PR - I'll merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants