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

Move Jest config to json #12402

Merged
merged 2 commits into from
Jun 19, 2017
Merged

Move Jest config to json #12402

merged 2 commits into from
Jun 19, 2017

Conversation

kimjoar
Copy link
Contributor

@kimjoar kimjoar commented Jun 19, 2017

I moved the Jest config to a JSON file instead of having it in JS and stringifying it etc. This makes it simpler to for example run debugger on the Jest tests (see https://facebook.github.io/jest/docs/troubleshooting.html).

(The only change is removing the resolve and "hard-coding" the path to the babel transform)

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Tested locally, everything still works normally. Config looks good. Just had one question.

package.json Outdated
@@ -94,7 +94,7 @@
"autoprefixer-loader": "2.0.0",
"babel-cli": "6.18.0",
"babel-core": "6.21.0",
"babel-jest": "20.0.0",
"babel-jest": "^20.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

We're locking the rest of our dependencies to specific versions. Any reason to deviate for these dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bah, we really need to switch to Yarn. Fixed

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

LGTM! 🇨🇨

@kimjoar kimjoar merged commit e7ce72e into elastic:master Jun 19, 2017
kimjoar added a commit to kimjoar/kibana that referenced this pull request Jun 21, 2017
@kimjoar kimjoar added the v5.6.0 label Jun 21, 2017
kimjoar added a commit that referenced this pull request Jun 21, 2017
@kimjoar
Copy link
Contributor Author

kimjoar commented Jun 21, 2017

5.x: eb11977

@jimgoodwin jimgoodwin added release_note:enhancement Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:enhancement review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v5.6.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants