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

Adding babel config inside "using-with-jest.md" #1667

Merged
merged 3 commits into from
Aug 30, 2020
Merged

Adding babel config inside "using-with-jest.md" #1667

merged 3 commits into from
Aug 30, 2020

Conversation

ColtHands
Copy link
Contributor

Adding more detailed "using with babel" paragraph since it was not fully complete and required
additional steps that were not present in using-with-jest documentation section.

#1666

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Adding more description to docs

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

The PR fulfills these requirements:

There is no need for new tests, as all .md formatting tests pass.

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

F1ks3r added 2 commits August 26, 2020 16:36
Adding more detailed "using with babel" paragraph since it was not fully complete and required
additional steps that were not present in documentation.

#1666
Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

LGTM, small change if you can! Thanks!

PS this is marked as WIP - are you intending on doing more changes?

> **Note:** If you are using Babel 7 or higher, you will need to add [babel-bridge](https://github.com/babel/babel-bridge) to your devDependencies (`$ npm install --save-dev babel-core@^7.0.0-bridge.0`).
### Using with Babel

If you are goind to use `babel` and import vue single file components with `.vue` extension inside your tests, you will need to install babel and transform `.js` files with `babel-jest` .
Copy link
Member

Choose a reason for hiding this comment

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

If you are going (going typo)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, excuse me, missed it, i should auto check for typos next time around.

```json
{
"jest": {
...
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove the ... and comment so people can easily copy paste this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed those.

@ColtHands
Copy link
Contributor Author

PS this is marked as WIP - are you intending on doing more changes?

Marked WIP because i knew there were some other small final changes to be made (and there were few). Its ready for review now.

@ColtHands ColtHands marked this pull request as ready for review August 29, 2020 11:51
@lmiller1990
Copy link
Member

Thanks!

@lmiller1990 lmiller1990 merged commit 9699877 into vuejs:dev Aug 30, 2020
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

Successfully merging this pull request may close these issues.

2 participants