Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixtures #717

Merged
merged 6 commits into from
Nov 9, 2017
Merged

Fixtures #717

merged 6 commits into from
Nov 9, 2017

Conversation

boopathi
Copy link
Member

@boopathi boopathi commented Nov 8, 2017

Move single file to autoupdating actual.js and expected.js - similar to babel/babel repository - with jest.

This is helpful to upgrade to babel-7 - simply by updating all the fixtures.

@boopathi boopathi added the Tag: Internal Pull Request changing project internals - code that is NOT published label Nov 8, 2017
@boopathi boopathi merged commit f8b65f2 into master Nov 9, 2017
@boopathi boopathi deleted the fixtures-testing-0 branch November 9, 2017 14:27
@j-f1
Copy link
Contributor

j-f1 commented Nov 18, 2017

How can I enable --update-fixtures when running yarn test?

@boopathi
Copy link
Member Author

Unfortunately I haven't figured out a way to support that. Right now using jest CLI for a particular package works.

jest packages/babel-plugin-minify-mangle-names -- --update-fixtures

Also, to update all fixtures

jest ./ -- --update-fixtures
# the ./ seems to be relevant. Otherwise jest treats --update-fixtures
# as directory for some weird reason

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Tag: Internal Pull Request changing project internals - code that is NOT published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants