Skip to content

console.log(JSON.stringify({...})) print a large json inside ava test only show part #2538

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

Closed
zyfmix opened this issue Jul 14, 2020 · 2 comments

Comments

@zyfmix
Copy link

zyfmix commented Jul 14, 2020

Please provide details about:

node: v14.5.0
"ava": "^3.10.1"

  • What you're trying to do
    console.log(JSON.stringify({...})) print a large json

  • What happened
    print part in terminal

  • What you expected to happen
    print full continuity

image
image

@novemberborn
Copy link
Member

I think this is the same underlying issue as #1758. We can't get the data out quickly enough and then it gets corrupted, and yea the spinner also gets in the way.

Running with --verbose or verbose: true may work. I tend to use console.error() as well.

Sorry I know this isn't great.

(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)

@zyfmix
Copy link
Author

zyfmix commented Jul 16, 2020

I think this is the same underlying issue as #1758. We can't get the data out quickly enough and then it gets corrupted, and yea the spinner also gets in the way.

Running with --verbose or verbose: true may work. I tend to use console.error() as well.

Sorry I know this isn't great.

(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)

Thank you for your reply,I'll try it!

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

No branches or pull requests

2 participants