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

Add a --show-config cli argument that prints the config. #3288

Closed
cpojer opened this issue Apr 12, 2017 · 8 comments
Closed

Add a --show-config cli argument that prints the config. #3288

cpojer opened this issue Apr 12, 2017 · 8 comments
Assignees

Comments

@cpojer
Copy link
Member

cpojer commented Apr 12, 2017

See https://github.com/facebook/jest/pull/3156/files#diff-8006e39142c24851115752df17e9c1c0R51

@rogeliog
Copy link
Contributor

Like --debug but it shows the config and exits right away?

@rogeliog rogeliog self-assigned this Apr 12, 2017
@cpojer
Copy link
Member Author

cpojer commented Apr 12, 2017

yes, a json-parseable config would be good. Maybe even this:

{
version: '…',
config: {…},
}
  • adjusting jest-editor-support to use this new command.

@rogeliog
Copy link
Contributor

Perfect, so I guess also testFramework right?

@cpojer
Copy link
Member Author

cpojer commented Apr 12, 2017

Nah, nobody needs that. Can we make it so --debug also outputs its data as JSON the same way --show-config does (except without exiting)? The whole = is really weird.

@wyze
Copy link
Contributor

wyze commented Apr 12, 2017

Can I take one of these up? Seems like there are 2 issues here, one with the config to JSON, and the other for --debug? Maybe a separate issue for the --debug flag and I can take that on?

I'd like to get more involved. :)

@rogeliog
Copy link
Contributor

rogeliog commented Apr 12, 2017

@wyze sure, let me know if I can help with anything

@rogeliog rogeliog assigned rogeliog and unassigned rogeliog Apr 12, 2017
@wyze
Copy link
Contributor

wyze commented Apr 12, 2017

The issue title mentions the argument as --show-config, but the convention of other arguments would make it --showConfig. Just wanted to throw that out there.

@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants