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

chore(doc): add jest specific pckg command #13607

Merged
merged 8 commits into from Aug 3, 2021
Merged

Conversation

tony-go
Copy link
Contributor

@tony-go tony-go commented Jul 28, 2021

Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass?
Documentation PR Link
Any Dependency Changes?
License MIT

Hi 👋

Yesterday, chatting with @JLHwung we figured out that the command: yarn jest <name-of-the-pckg> --watch wasn't mentioned in the documentation.

A tiny PR to add it ^^

Let me know if it's useful or not.

@babel-bot
Copy link
Collaborator

babel-bot commented Jul 28, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/47804/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 28, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 206fa6f:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@fedeci fedeci added the PR: Docs 📝 A type of pull request used for our changelog categories label Jul 28, 2021
Copy link
Member

@fedeci fedeci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are equivalent flags also for TEST_GREP and TEST_DEBUG, why don't we document all of them?

@tony-go
Copy link
Contributor Author

tony-go commented Jul 28, 2021

Since there are equivalent flags also for TEST_GREP and TEST_DEBUG, why don't we document all of them?

Just to mention that the command TEST_DEBUG=true make test and yarn node --inspect-brk node_modules/.bin/jest --runInBand doesn't work on my machine 🙈

@tony-go tony-go requested a review from fedeci July 28, 2021 20:41
@nicolo-ribaudo
Copy link
Member

TIL about TEST_DEBUG=true 😬

Copy link
Member

@fedeci fedeci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the nitpicks, I was thinking about a more tabular view of this commands, what's your point of view?

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@tony-go
Copy link
Contributor Author

tony-go commented Jul 29, 2021

Fix nitpicks and reshape a bit the documentation.

👀

Let me know.

@tony-go tony-go requested a review from fedeci July 29, 2021 06:38
Copy link
Member

@fedeci fedeci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great🚀

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@tony-go tony-go requested a review from fedeci July 29, 2021 07:34
CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Contributor

@JLHwung JLHwung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some nits.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated
@@ -82,64 +82,100 @@ $ make build-dist

### Running linting/tests

You can run lint via:
#### You can run lint via:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know if we want to align the language in h4 subtitles. e.g. We can simplify put "Lint" here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea was to add a bit of structure to all these lines. But we can rethink it. :)

@tony-go tony-go requested a review from JLHwung July 29, 2021 19:05
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@tony-go tony-go requested a review from JLHwung August 3, 2021 11:35
@JLHwung JLHwung merged commit 5f4b58f into babel:main Aug 3, 2021
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 3, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Docs 📝 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants