opened
cpojer
username_0
When passed a snapshot file, Jest should print the correct test name related to it and run the proper tests.
`jest --findRelatedTests snapshot.js.snap` should work
issue
created
rogeliog
username_1
This would be really nice
comment
created
rogeliog
username_1
Wait I think I misunderstood something... Isn't it that `--findRelatedTests snapshot.js.snap` already works fine?
comment
created
thymikee
username_2
@username_0 I can confirm it works fine with `.snap` files, you just need to pass relative/absolute path to the file (as stated in the description). It doesn't work with patterns.
comment
created
emilgoldsmith
username_3
Something related to this though, it doesn't seem to work with mocks though, that would also be a great functionality to add when this is added (if it isn't already)
comment
closed
SimenB
username_4
issue
created
SimenB
username_4
Closing, as this seems to work as intended?

@username_3 working with mocks, not sure what you mean? Do you mean that if a mock changes, we should figure out what tests relied on that mock? That seems like a new feature request to me, mind opening up a new issue for that?
comment