Skip to content

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

3 participants