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

CustomConsole is missing many methods #3756

Closed
taion opened this issue Jun 7, 2017 · 11 comments
Closed

CustomConsole is missing many methods #3756

taion opened this issue Jun 7, 2017 · 11 comments

Comments

@taion
Copy link
Contributor

taion commented Jun 7, 2017

Ref https://github.com/facebook/relay/pull/1857/files#r119980384

Would it make sense for CustomConsole to implement (or stub) some of the more advanced console methods? Might be nicer than having to sniff for support in various loggers to avoid erroring out in tests.

@thymikee
Copy link
Collaborator

thymikee commented Jun 8, 2017

It makes sense if you're willing to do so! :)

@sumnerevans
Copy link

@taion , @thymikee , which of the functions listed in the MDN Docs for Console need to be implemented? I can jump in to implementing them.

@taion
Copy link
Contributor Author

taion commented Jul 5, 2017

group and groupCollapsed would be nice :D

@goksu
Copy link

goksu commented Oct 6, 2017

Can someone point me to certain files that have references to said CustomConsole? I'd like to take on the item, but do need some familiarity on the code base before doing so. Thank you!

@thymikee
Copy link
Collaborator

thymikee commented Oct 6, 2017

@gtoprak The code sits mostly in here: https://github.com/facebook/jest/blob/master/packages/jest-util/src/Console.js. We basically extend Nodes console module and apply some logic to buffer the output.

@nicolasiensen
Copy link
Contributor

What's wrong with the pull request submitted by @sumnerevans ? As far as I can see it is just waiting for code review.

@SimenB
Copy link
Member

SimenB commented Oct 7, 2017

That PR is opened against a fork of Jest, not Jest itself

@binygal
Copy link
Contributor

binygal commented Jan 25, 2018

Can I help with this issue? Is it still waiting to fix? What exactly is still needed to be done?

@sumnerevans
Copy link

@binygal , @gtoprak , I worked on this over the summer for my internship with Kenzan. I am no longer at the company, so I am not communicating in any official capacity.

We had some trouble getting CLAs signed (corporate politics), so we didn't submit anything upstream. If you want, you can look at what I implemented. I give you permission to copy-paste what I did.

@SimenB
Copy link
Member

SimenB commented Feb 10, 2018

#5514

@SimenB SimenB closed this as completed Feb 10, 2018
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants