Skip to content

Commit 57b6e9a

Browse files
authored
Using styled-jsx for with-jest example. (vercel#1052)
1 parent 355c984 commit 57b6e9a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/with-jest/__tests__/__snapshots__/index.test.js.snap

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
exports[`With Snapshot Testing App shows "Hello world!" 1`] = `
2-
<div>
3-
<p>
2+
<div
3+
data-jsx={2648947580}>
4+
<p
5+
data-jsx={2648947580}>
46
Hello World!
57
</p>
68
</div>

examples/with-jest/pages/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
export default () => (
22
<div>
3+
<style jsx>{`
4+
p {
5+
color: red;
6+
}
7+
`}</style>
38
<p>Hello World!</p>
49
</div>
510
)

0 commit comments

Comments
 (0)