jest-html: HTML preview doesn't work
When I try to press switcher icon, nothing changes. Only raw preview is available. Here my snapshot:
exports[`<Auth /> Auth with mode "reset_password" should match snapshot 1`] = `
<div>
<h1 class="App-title is-hero mbxl">
Reset Password
</h1>
<form class="base-form">
<div>
<div class="base-form-body">
<div class="base-form-group">
<div class="base-form-group-title">
Reset Password
</div>
<div class="base-form-row is-first">
<label class="base-form-label"
for="email"
>
Your email
</label>
<input type="email"
name="email"
class="base-input"
value="vlad.serebriakov@talkable.com"
>
</div>
</div>
</div>
<div class="base-form-footer">
<input type="submit"
value="Reset Password"
class="base-btn is-success is-xl ac-reset-password-button"
>
</div>
</div>
</form>
</div>
`;
Any thoughts?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 4
- Comments: 16 (4 by maintainers)
I figured out what the problem was…at first I was using React Testing Library and thought that might be it, so I switched to Enzyme, which didn’t work either. Getting rid of both of those and using React Test Renderer worked.
I looked at @rizkyario 's repo and looks like he was using Enzyme as well.