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
5d586269
Unverified
Commit
5d586269
authored
Feb 09, 2021
by
Kazutaka NAKAMURA
Committed by
GitHub
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade packages for example/with-typescript-eslint-jest (#21963)
parent
63699817
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
44 deletions
+58
-44
package.json
examples/with-typescript-eslint-jest/package.json
+12
-12
index.tsx
examples/with-typescript-eslint-jest/pages/index.tsx
+3
-5
index.test.tsx.snap
...-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap
+43
-27
No files found.
examples/with-typescript-eslint-jest/package.json
View file @
5d586269
...
@@ -31,22 +31,22 @@
...
@@ -31,22 +31,22 @@
"react-dom"
:
"^17.0.1"
"react-dom"
:
"^17.0.1"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@testing-library/react"
:
"^1
0.0.1
"
,
"@testing-library/react"
:
"^1
1.2.5
"
,
"@types/jest"
:
"^2
5.1.4
"
,
"@types/jest"
:
"^2
6.0.20
"
,
"@types/node"
:
"^1
3.9.
5"
,
"@types/node"
:
"^1
4.14.2
5"
,
"@types/react"
:
"^1
6.9.27
"
,
"@types/react"
:
"^1
7.0.1
"
,
"@typescript-eslint/eslint-plugin"
:
"^
2.25.0
"
,
"@typescript-eslint/eslint-plugin"
:
"^
4.14.2
"
,
"@typescript-eslint/parser"
:
"^
2.25.0
"
,
"@typescript-eslint/parser"
:
"^
4.14.2
"
,
"babel-jest"
:
"^2
5.2
.3"
,
"babel-jest"
:
"^2
6.6
.3"
,
"eslint"
:
"^
6.8
.0"
,
"eslint"
:
"^
7.19
.0"
,
"eslint-config-prettier"
:
"^
6.10.1
"
,
"eslint-config-prettier"
:
"^
7.2.0
"
,
"eslint-plugin-react"
:
"^7.19.0"
,
"eslint-plugin-react"
:
"^7.19.0"
,
"husky"
:
"^4.2.3"
,
"husky"
:
"^4.2.3"
,
"identity-obj-proxy"
:
"^3.0.0"
,
"identity-obj-proxy"
:
"^3.0.0"
,
"jest"
:
"^2
5.2
.3"
,
"jest"
:
"^2
6.6
.3"
,
"jest-watch-typeahead"
:
"^0.
5.0
"
,
"jest-watch-typeahead"
:
"^0.
6.1
"
,
"lint-staged"
:
"^10.0.10"
,
"lint-staged"
:
"^10.0.10"
,
"prettier"
:
"^2.0.2"
,
"prettier"
:
"^2.0.2"
,
"typescript"
:
"^
3.8
.3"
"typescript"
:
"^
4.1
.3"
}
}
}
}
examples/with-typescript-eslint-jest/pages/index.tsx
View file @
5d586269
import
Head
from
'next/head'
import
Head
from
'next/head'
import
Image
from
'next/image'
export
const
Home
=
():
JSX
.
Element
=>
(
export
const
Home
=
():
JSX
.
Element
=>
(
<
div
className=
"container"
>
<
div
className=
"container"
>
...
@@ -59,7 +60,8 @@ export const Home = (): JSX.Element => (
...
@@ -59,7 +60,8 @@ export const Home = (): JSX.Element => (
target=
"_blank"
target=
"_blank"
rel=
"noopener noreferrer"
rel=
"noopener noreferrer"
>
>
Powered by
<
img
src=
"/vercel.svg"
alt=
"Vercel Logo"
className=
"logo"
/>
Powered by
{
' '
}
<
Image
src=
"/vercel.svg"
alt=
"Vercel Logo"
height=
{
'32'
}
width=
{
'64'
}
/>
</
a
>
</
a
>
</
footer
>
</
footer
>
...
@@ -182,10 +184,6 @@ export const Home = (): JSX.Element => (
...
@@ -182,10 +184,6 @@ export const Home = (): JSX.Element => (
line-height: 1.5;
line-height: 1.5;
}
}
.logo {
height: 1em;
}
@media (max-width: 600px) {
@media (max-width: 600px) {
.grid {
.grid {
width: 100%;
width: 100%;
...
...
examples/with-typescript-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap
View file @
5d586269
...
@@ -3,96 +3,96 @@
...
@@ -3,96 +3,96 @@
exports[`Home page matches snapshot 1`] = `
exports[`Home page matches snapshot 1`] = `
<DocumentFragment>
<DocumentFragment>
<div
<div
class="jsx-
2250570153
container"
class="jsx-
1276654382
container"
>
>
<main
<main
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
<h1
<h1
class="jsx-
2250570153
title"
class="jsx-
1276654382
title"
>
>
Welcome to
Welcome to
<a
<a
class="jsx-
2250570153
"
class="jsx-
1276654382
"
href="https://nextjs.org"
href="https://nextjs.org"
>
>
Next.js!
Next.js!
</a>
</a>
</h1>
</h1>
<p
<p
class="jsx-
2250570153
description"
class="jsx-
1276654382
description"
>
>
Get started by editing
Get started by editing
<code
<code
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
pages/index.tsx
pages/index.tsx
</code>
</code>
</p>
</p>
<button
<button
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Test Button
Test Button
</button>
</button>
<div
<div
class="jsx-
2250570153
grid"
class="jsx-
1276654382
grid"
>
>
<a
<a
class="jsx-
2250570153
card"
class="jsx-
1276654382
card"
href="https://nextjs.org/docs"
href="https://nextjs.org/docs"
>
>
<h3
<h3
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Documentation →
Documentation →
</h3>
</h3>
<p
<p
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Find in-depth information about Next.js features and API.
Find in-depth information about Next.js features and API.
</p>
</p>
</a>
</a>
<a
<a
class="jsx-
2250570153
card"
class="jsx-
1276654382
card"
href="https://nextjs.org/learn"
href="https://nextjs.org/learn"
>
>
<h3
<h3
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Learn →
Learn →
</h3>
</h3>
<p
<p
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Learn about Next.js in an interactive course with quizzes!
Learn about Next.js in an interactive course with quizzes!
</p>
</p>
</a>
</a>
<a
<a
class="jsx-
2250570153
card"
class="jsx-
1276654382
card"
href="https://github.com/vercel/next.js/tree/master/examples"
href="https://github.com/vercel/next.js/tree/master/examples"
>
>
<h3
<h3
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Examples →
Examples →
</h3>
</h3>
<p
<p
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Discover and deploy boilerplate example Next.js projects.
Discover and deploy boilerplate example Next.js projects.
</p>
</p>
</a>
</a>
<a
<a
class="jsx-
2250570153
card"
class="jsx-
1276654382
card"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
>
>
<h3
<h3
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Deploy →
Deploy →
</h3>
</h3>
<p
<p
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
Instantly deploy your Next.js site to a public URL with Vercel.
Instantly deploy your Next.js site to a public URL with Vercel.
</p>
</p>
...
@@ -100,20 +100,36 @@ exports[`Home page matches snapshot 1`] = `
...
@@ -100,20 +100,36 @@ exports[`Home page matches snapshot 1`] = `
</div>
</div>
</main>
</main>
<footer
<footer
class="jsx-
2250570153
"
class="jsx-
1276654382
"
>
>
<a
<a
class="jsx-
2250570153
"
class="jsx-
1276654382
"
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
rel="noopener noreferrer"
rel="noopener noreferrer"
target="_blank"
target="_blank"
>
>
Powered by
Powered by
<img
<div
alt="Vercel Logo"
style="display: inline-block; max-width: 100%; overflow: hidden; position: relative; box-sizing: border-box; margin: 0px;"
class="jsx-2250570153 logo"
>
src="/vercel.svg"
<div
/>
style="box-sizing: border-box; display: block; max-width: 100%;"
>
<img
alt=""
aria-hidden="true"
role="presentation"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIi8+"
style="max-width: 100%; display: block; margin: 0px; padding: 0px;"
/>
</div>
<img
alt="Vercel Logo"
decoding="async"
src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
style="visibility: hidden; position: absolute; top: 0px; left: 0px; bottom: 0px; right: 0px; box-sizing: border-box; padding: 0px; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%;"
/>
</div>
</a>
</a>
</footer>
</footer>
</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