Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
57b6e9a7
Commit
57b6e9a7
authored
Feb 09, 2017
by
Arunoda Susiripala
Committed by
GitHub
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using styled-jsx for with-jest example. (#1052)
parent
355c984e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
index.test.js.snap
...ples/with-jest/__tests__/__snapshots__/index.test.js.snap
+4
-2
index.js
examples/with-jest/pages/index.js
+5
-0
No files found.
examples/with-jest/__tests__/__snapshots__/index.test.js.snap
View file @
57b6e9a7
exports[`With Snapshot Testing App shows "Hello world!" 1`] = `
exports[`With Snapshot Testing App shows "Hello world!" 1`] = `
<div>
<div
<p>
data-jsx={2648947580}>
<p
data-jsx={2648947580}>
Hello World!
Hello World!
</p>
</p>
</div>
</div>
...
...
examples/with-jest/pages/index.js
View file @
57b6e9a7
export
default
()
=>
(
export
default
()
=>
(
<
div
>
<
div
>
<
style
jsx
>
{
`
p {
color: red;
}
`
}
<
/style
>
<
p
>
Hello
World
!<
/p
>
<
p
>
Hello
World
!<
/p
>
<
/div
>
<
/div
>
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment