Open tmquinn opened 5 years ago
Similar to the jest --updateSnapshot
. It would provide a way to update .output test fixtures with the currently rendering version of the .input.
jest provides a menu selection to choose which fixtures you would like to update, as described here: https://jestjs.io/docs/en/snapshot-testing#updating-snapshots
That's something that jscodeshift needs to do first. See https://github.com/facebook/jscodeshift/issues/135
Once they update their testUtils to generate tests using snapshots instead of their custom way, then it would be easy to simply pipe the argument to jest
I think we can do it actually. @turbo87 did something similar over in https://github.com/ember-codemods/ember-angle-brackets-codemod/pull/138.
PR fixing this: https://github.com/facebook/jscodeshift/pull/297
Say more? How would like to use it, what would that look like?