Skip to content

Commit c05379e

Browse files
committed
Using styled-jsx for with-jest example.
1 parent bdcb0f7 commit c05379e

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

Lines changed: 4 additions & 2 deletions
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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy