Open
Description
Steps to Reproduce
Save the snapshot for:
it('', () => expect('test').toMatchSnapshot())
and reload the window. You'll see the "snapshot missing" message.
Snapshot
in jest-editor-support
will build the snapshot name adding the test
prefix for tests without a parent. This changed in jestjs/jest#2857 but has not been fixed.
Expected Behavior
Snapshot is found.
Actual Behavior
Snapshot CodeLens shows "snapshot missing"
Suggested Changes
- Integration test in Jest
- Fix
jest-editor-support
- Integration test in this repo