Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4025468
add test setup
ifatihyildirim Jun 23, 2020
6ee45c4
add utils tests
ifatihyildirim Jun 23, 2020
5e9356a
add jest-transform-stub for handling assets
ifatihyildirim Jun 23, 2020
2a903c6
update .gitignore for coverage files
ifatihyildirim Jun 23, 2020
1a1dec3
add a component tests
ifatihyildirim Jun 23, 2020
ac134b0
add layout component tests
ifatihyildirim Jun 23, 2020
5d89eaf
add message component tests
ifatihyildirim Jun 23, 2020
c89b59f
add title component test
ifatihyildirim Jun 23, 2020
eaf6bc0
add nav component test
ifatihyildirim Jun 23, 2020
9ff7b05
update nav component test
ifatihyildirim Jun 23, 2020
a058666
add pagination component tests
ifatihyildirim Jun 23, 2020
68d6a6c
add news component test
ifatihyildirim Jun 23, 2020
53167c3
add mockdate package
ifatihyildirim Jun 23, 2020
e142f05
add news-card component test
ifatihyildirim Jun 23, 2020
ba29af7
update news component snapshot
ifatihyildirim Jun 23, 2020
a951a01
add page component tests
ifatihyildirim Jun 23, 2020
ac0db80
update test messages
ifatihyildirim Jun 23, 2020
06b313b
update constants
ifatihyildirim Jun 26, 2020
3512c82
add testid to news-card
ifatihyildirim Jun 26, 2020
2791a10
update components tests
ifatihyildirim Jun 26, 2020
a3d8b14
add cypress e2e test
ifatihyildirim Jun 26, 2020
3c69765
update configs for cypress
ifatihyildirim Jun 26, 2020
29cbbc1
add test utils file
ifatihyildirim Jun 26, 2020
d33525a
update dummy api data
ifatihyildirim Jun 26, 2020
5f9c04d
add cypress tests
ifatihyildirim Jun 26, 2020
a75561a
update tests
ifatihyildirim Jun 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["next/babel"],
"plugins": []
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ out
public/sw.js
public/workbox-*
.env
coverage
.DS_Store
cypress/screenshots
cypress/videos
13 changes: 13 additions & 0 deletions components/__snapshots__/a.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`A should have children. 1`] = `
<DocumentFragment>
<a
class=""
rel="noopener noreferrer"
target="_blank"
>
&lt;span&gt;Test Message&lt;/span&gt;
</a>
</DocumentFragment>
`;
11 changes: 11 additions & 0 deletions components/__snapshots__/layout.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Layout should have children. 1`] = `
<DocumentFragment>
<div
class=""
>
&lt;span&gt;Test Message&lt;/span&gt;
</div>
</DocumentFragment>
`;
18 changes: 18 additions & 0 deletions components/__snapshots__/message.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Message should render correctly. 1`] = `
<DocumentFragment>
<div
class=""
>
<a
class=""
href="https://airtable.com/shrWh78cmXzVHcgwV"
rel="noopener noreferrer"
target="_blank"
>
Kafa açacağını düşündüğün faydalı içerikleri sen de ekleyebilirsin →
</a>
</div>
</DocumentFragment>
`;
74 changes: 74 additions & 0 deletions components/__snapshots__/nav.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Nav should have children. 1`] = `
<DocumentFragment>
<div
class=""
data-testid="nav"
>
<a
href="/tag/tasarim"
>
Tasarım
</a>
<a
href="/tag/frontend"
>
Frontend
</a>
<a
href="/tag/yazilim"
>
Yazılım
</a>
<a
href="/tag/turkce-kaynak"
>
Türkçe Kaynak
</a>
<a
href="/tag/video"
>
Video
</a>
<a
href="/tag/podcast"
>
Podcast
</a>
<a
href="/tag/yazi"
>
Blog Yazısı
</a>
<a
href="/tag/arac"
>
Araç
</a>
<a
href="/tag/etkinlik"
>
Etkinlik
</a>
<a
href="/tag/tweet"
>
Tweet
</a>
<a
href="/tag/alinti"
>
Alıntı
</a>
<a
class=""
href="https://www.patreon.com/ademilter"
rel="noopener noreferrer"
target="_blank"
>
Destek Ol
</a>
</div>
</DocumentFragment>
`;
165 changes: 165 additions & 0 deletions components/__snapshots__/news-card.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NewsCard should render correctly with "Alıntı" tag. 1`] = `
<DocumentFragment>
<article
class=""
data-testid="article-370706f5-2c62-482c-bc5f-58bf441c3d01"
>
<h2>
<a
class=""
href="http://alysha.com"
rel="noopener noreferrer"
target="_blank"
>
Unde sed at. Sed et velit consequatur sed.
</a>
</h2>
<footer>
<a
aria-hidden="true"
class=""
href="http://alysha.com"
rel="noopener noreferrer"
tabindex="-1"
target="_blank"
>
11 months ago
</a>
,
<a
class=""
href="https://twitter.com/Blaise_Streich"
rel="noopener noreferrer"
target="_blank"
>
Blaise_Streich
</a>
,
<a
href="/tag/yazilim"
>
Yazılım
</a>
,
<a
href="/tag/turkce-kaynak"
>
Türkçe Kaynak
</a>
,
<a
href="/tag/alinti"
>
Alıntı
</a>
,
<a
href="/tag/yazi"
>
Blog Yazısı
</a>
,
<a
href="/tag/podcast"
>
Podcast
</a>
</footer>
</article>
</DocumentFragment>
`;

exports[`NewsCard should render correctly. 1`] = `
<DocumentFragment>
<article
class=""
data-testid="article-c51305b1-f1de-460a-b265-922b2e2f4d8e"
>
<figure>
<a
aria-hidden="true"
class=""
href="https://chadd.net"
rel="noopener noreferrer"
tabindex="-1"
target="_blank"
>
<picture>
<source
srcset="https://via.placeholder.com/913x512"
/>
<img
alt="Doloremque animi officia."
loading="lazy"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQYV2P4DwABAQEAWk1v8QAAAABJRU5ErkJggg=="
/>
</picture>
</a>
</figure>
<div>
<header>
<h2>
<a
class=""
href="https://chadd.net"
rel="noopener noreferrer"
target="_blank"
>
Doloremque animi officia.
</a>
</h2>
<p>
Eum facere ut expedita repudiandae iure labore laborum rerum. Dolorum autem ipsum similique iure error doloremque est. Hic voluptates assumenda nisi fugit dicta in.
</p>
</header>
<footer>
<a
aria-hidden="true"
class=""
href="https://chadd.net"
rel="noopener noreferrer"
tabindex="-1"
target="_blank"
>
4 months ago
</a>
,
<a
class=""
href="https://twitter.com/Elliott9"
rel="noopener noreferrer"
target="_blank"
>
Elliott9
</a>
,
<a
href="/tag/frontend"
>
Frontend
</a>
,
<a
href="/tag/turkce-kaynak"
>
Türkçe Kaynak
</a>
,
<a
href="/tag/podcast"
>
Podcast
</a>
,
<a
href="/tag/etkinlik"
>
Etkinlik
</a>
</footer>
</div>
</article>
</DocumentFragment>
`;
Loading