Skip to content

Instantly share code, notes, and snippets.

@marlo22
Created August 9, 2019 10:51
Show Gist options
  • Save marlo22/042fcacb5bf11d4b1184c6fc87212048 to your computer and use it in GitHub Desktop.
Save marlo22/042fcacb5bf11d4b1184c6fc87212048 to your computer and use it in GitHub Desktop.
Enzyme wrappers
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`App snapshot 1`] = `
<App>
<div
className="app"
>
<Counter
onDecrement={[Function]}
onIncrement={[Function]}
>
<button
disabled={true}
onClick={[Function]}
>
-
</button>
<span>
0
</span>
<button
onClick={[Function]}
>
+
</button>
<ReactLogo
visible={false}
>
<div
style={
Object {
"display": "none",
"textAlign": "center",
"width": "100%",
}
}
>
<img
alt="React logo"
src="logo.svg"
width={100}
/>
</div>
</ReactLogo>
</Counter>
</div>
</App>
`;
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`App snapshot 1`] = `
<div
className="app"
>
<Counter
onDecrement={[Function]}
onIncrement={[Function]}
/>
</div>
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment