aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-03 11:58:21 +0200
committerGitHub <noreply@github.com>2022-06-03 11:58:21 +0200
commit6d0a9504406524957b351aee748d9f5c8a84c299 (patch)
tree1b859015ef5e52b2c7c4e7521f428fb2215df21d /src/components/atoms/layout
parenta8af53c118478e6ed68975c32cc1202b7c7b798e (diff)
parentfc7a6e98268d34f313d79c817e38c09ad6cde960 (diff)
test: add end to end tests (#19)
In addition to Jest tests, I configure Cypress to test some pages and features. I also fix some Jest errors due to images import.
Diffstat (limited to 'src/components/atoms/layout')
-rw-r--r--src/components/atoms/layout/column.test.tsx2
-rw-r--r--src/components/atoms/layout/copyright.test.tsx2
-rw-r--r--src/components/atoms/layout/main.test.tsx2
-rw-r--r--src/components/atoms/layout/no-script.test.tsx2
-rw-r--r--src/components/atoms/layout/notice.test.tsx2
-rw-r--r--src/components/atoms/layout/section.test.tsx2
-rw-r--r--src/components/atoms/layout/sidebar.test.tsx2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/components/atoms/layout/column.test.tsx b/src/components/atoms/layout/column.test.tsx
index c5c6554..95508b3 100644
--- a/src/components/atoms/layout/column.test.tsx
+++ b/src/components/atoms/layout/column.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Column from './column';
const body =
diff --git a/src/components/atoms/layout/copyright.test.tsx b/src/components/atoms/layout/copyright.test.tsx
index 6bfe612..09392b6 100644
--- a/src/components/atoms/layout/copyright.test.tsx
+++ b/src/components/atoms/layout/copyright.test.tsx
@@ -1,5 +1,5 @@
import CCBySA from '@components/atoms/icons/cc-by-sa';
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Copyright from './copyright';
const dates = {
diff --git a/src/components/atoms/layout/main.test.tsx b/src/components/atoms/layout/main.test.tsx
index f91846f..392fbd5 100644
--- a/src/components/atoms/layout/main.test.tsx
+++ b/src/components/atoms/layout/main.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Main from './main';
const id = 'main';
diff --git a/src/components/atoms/layout/no-script.test.tsx b/src/components/atoms/layout/no-script.test.tsx
index 9ed9c4c..1b9e96f 100644
--- a/src/components/atoms/layout/no-script.test.tsx
+++ b/src/components/atoms/layout/no-script.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import NoScript from './no-script';
const message = 'A noscript message.';
diff --git a/src/components/atoms/layout/notice.test.tsx b/src/components/atoms/layout/notice.test.tsx
index 4501f8f..8408d17 100644
--- a/src/components/atoms/layout/notice.test.tsx
+++ b/src/components/atoms/layout/notice.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Notice from './notice';
const message = 'Tenetur consequuntur tempore.';
diff --git a/src/components/atoms/layout/section.test.tsx b/src/components/atoms/layout/section.test.tsx
index ca5f03a..2143b70 100644
--- a/src/components/atoms/layout/section.test.tsx
+++ b/src/components/atoms/layout/section.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Section from './section';
const title = 'Section title';
diff --git a/src/components/atoms/layout/sidebar.test.tsx b/src/components/atoms/layout/sidebar.test.tsx
index 4c9459d..6fdb24a 100644
--- a/src/components/atoms/layout/sidebar.test.tsx
+++ b/src/components/atoms/layout/sidebar.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from '@test-utils';
+import { render, screen } from '@tests/utils';
import Sidebar from './sidebar';
const children = 'A widget';