Skip to content

Commit

Permalink
⬆️ Bump next from 9.4.4 to 9.5.0 (#235)
Browse files Browse the repository at this point in the history
* ⬆️ Bump next from 9.4.4 to 9.5.0

Bumps [next](https://github.com/vercel/next.js) from 9.4.4 to 9.5.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](vercel/next.js@v9.4.4...v9.5.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* ✅ Mock next/Link

Related with vercel/next.js#15543

* 🚚 Move index/index.js to index.js

This is related with vercel/next.js#13699

* ✅ Improve Layout coverage

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Carlos Cuesta <[email protected]>
  • Loading branch information
dependabot-preview[bot] and carloscuesta authored Jul 28, 2020
1 parent 6ba4648 commit 8e003ef
Show file tree
Hide file tree
Showing 13 changed files with 328 additions and 371 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"gray-matter": "^4.0.2",
"lazysizes": "^5.2.2",
"lodash.groupby": "^4.6.0",
"next": "^9.4.4",
"next": "^9.5.0",
"next-seo": "^4.7.3",
"react": "^16.13.1",
"react-dom": "^16.13.1",
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/404/404.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import renderer from 'react-test-renderer'

import Error404 from 'src/pages/404'

jest.mock('next/link', () => 'a')

/*
I'm mocking the components since those are unit tested.
So there's no point to test the rendering of them twice.
Expand Down
12 changes: 6 additions & 6 deletions src/__tests__/404/__snapshots__/404.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ exports[`404 page should match Error 404 page 1`] = `
<li>
<a
href="/"
onClick={[Function]}
onMouseEnter={[Function]}
>
Home
<a>
Home
</a>
</a>
</li>
<li>
<a
href="/blog"
onClick={[Function]}
onMouseEnter={[Function]}
>
Writings
<a>
Writings
</a>
</a>
</li>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ exports[`WhoAmI should match WhoAmI component 1`] = `
<a
href="/blog"
onClick={[Function]}
onMouseEnter={[Function]}
>
<b>
blog
</b>
<a>
<b>
blog
</b>
</a>
</a>
.
</p>
Expand Down
2 changes: 2 additions & 0 deletions src/components/pages/about/WhoAmI/__tests__/whoAmI.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import renderer from 'react-test-renderer'

import WhoAmI from '../index'

jest.mock('next/link', () => 'a')

describe('WhoAmI', () => {
it('should match WhoAmI component', () => {
const wrapper = renderer.create(<WhoAmI />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,84 +22,88 @@ exports[`Writings should match Writings component 1`] = `
className="col-xs-12 col-sm-6 col-md-4 postContainer"
>
<a
className="post"
href="/blog/post-slug"
onClick={[Function]}
onMouseEnter={[Function]}
title="Post Title"
as="/blog/post-slug"
href="/blog/[slug]"
>
<article>
<img
alt="Post Title"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
<header>
<h5
className="postTitle"
>
Post Title
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-15 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
<a
className="post"
title="Post Title"
>
<article>
<img
alt="Post Title"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
<header>
<h5
className="postTitle"
>
Post Title
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-15 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
</a>
</a>
</div>
<div
className="col-xs-12 col-sm-6 col-md-4 postContainer"
>
<a
className="post"
href="/blog/post-blog-slug"
onClick={[Function]}
onMouseEnter={[Function]}
title="A post"
as="/blog/post-blog-slug"
href="/blog/[slug]"
>
<article>
<img
alt="A post"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
<header>
<h5
className="postTitle"
>
A post
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-17 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
<a
className="post"
title="A post"
>
<article>
<img
alt="A post"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
<header>
<h5
className="postTitle"
>
A post
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-17 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
</a>
</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import renderer from 'react-test-renderer'
import Writings from '../index'
import * as stubs from './stubs'

jest.mock('next/link', () => 'a')

describe('Writings', () => {
it('should match Writings component', () => {
const wrapper = renderer.create(<Writings {...stubs.props} />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,44 @@ exports[`BlogPost should match BlogPost component 1`] = `
className="col-xs-12 col-sm-6 col-md-4 postContainer"
>
<a
className="post"
href="/blog/post-slug"
onClick={[Function]}
onMouseEnter={[Function]}
title="Post Title"
as="/blog/post-slug"
href="/blog/[slug]"
>
<article>
<img
alt="Post Title"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
<header>
<h5
className="postTitle"
>
Post Title
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-15 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
<a
className="post"
title="Post Title"
>
<article>
<img
alt="Post Title"
className="lazyload postImage"
data-src="https://res.cloudinary.com/carloscuesta/image/upload/w_500/v1454754838/kcuq34zbo1yieygmx0y6.png"
src="https://res.cloudinary.com/carloscuesta/image/upload/t_lqpi-post-preview/v1454754838/kcuq34zbo1yieygmx0y6.png"
/>
<div
className="postContent"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
<header>
<h5
className="postTitle"
>
Post Title
</h5>
</header>
<time
className="postPublishedAt"
dateTime="2019-12-15 10:00"
>
A year ago
</time>
<p
className="postExcerpt"
>
This is the post excerpt that will be shown.
</p>
</div>
</article>
</a>
</a>
</div>
`;
2 changes: 2 additions & 0 deletions src/components/shared/BlogPost/__tests__/blogPost.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import renderer from 'react-test-renderer'
import BlogPost from '../index'
import * as stubs from './stubs'

jest.mock('next/link', () => 'a')

describe('BlogPost', () => {
it('should match BlogPost component', () => {
const wrapper = renderer.create(<BlogPost {...stubs.props} />)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,38 @@ Array [
className="logo"
>
<a
className="link false"
href="/"
onClick={[Function]}
onMouseEnter={[Function]}
>
Carlos Cuesta
<a
className="link false"
>
Carlos Cuesta
</a>
</a>
</strong>
<ul
className="links"
>
<li>
<a
className="link false"
href="/blog"
onClick={[Function]}
onMouseEnter={[Function]}
>
Blog
<a
className="link false"
>
Blog
</a>
</a>
</li>
<li>
<a
className="link false"
href="/about"
onClick={[Function]}
onMouseEnter={[Function]}
>
About
<a
className="link false"
>
About
</a>
</a>
</li>
<li>
Expand Down Expand Up @@ -109,10 +112,10 @@ Array [
<li>
<a
href="/blog"
onClick={[Function]}
onMouseEnter={[Function]}
>
Blog
<a>
Blog
</a>
</a>
</li>
<li>
Expand Down
Loading

1 comment on commit 8e003ef

@vercel
Copy link

@vercel vercel bot commented on 8e003ef Jul 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.