From bc1b0ea6294f5739a1070dd58549d7a5aa8a1240 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Thu, 22 Aug 2024 19:44:11 +0100 Subject: [PATCH] chore: move tests to __test__ dir --- .../Article => __test__/components}/Article.test.jsx | 2 +- {src/components/CV => __test__/components}/Cv.test.jsx | 2 +- .../components}/ExsternalLink.test.jsx | 2 +- .../Footer => __test__/components}/Footer.test.jsx | 2 +- .../Grid => __test__/components}/Grid.test.jsx | 2 +- .../Header => __test__/components}/Header.test.jsx | 2 +- .../index.test.jsx => __test__/pages/Writing.test.jsx | 2 +- public/sitemap-0.xml | 10 +++++----- 8 files changed, 12 insertions(+), 12 deletions(-) rename {src/components/Article => __test__/components}/Article.test.jsx (95%) rename {src/components/CV => __test__/components}/Cv.test.jsx (97%) rename {src/components/ExternalLink => __test__/components}/ExsternalLink.test.jsx (91%) rename {src/components/Footer => __test__/components}/Footer.test.jsx (81%) rename {src/components/Grid => __test__/components}/Grid.test.jsx (91%) rename {src/components/Header => __test__/components}/Header.test.jsx (88%) rename src/pages/writing/index.test.jsx => __test__/pages/Writing.test.jsx (97%) diff --git a/src/components/Article/Article.test.jsx b/__test__/components/Article.test.jsx similarity index 95% rename from src/components/Article/Article.test.jsx rename to __test__/components/Article.test.jsx index 86feb29..98ecb73 100644 --- a/src/components/Article/Article.test.jsx +++ b/__test__/components/Article.test.jsx @@ -1,6 +1,6 @@ /* eslint-env jest */ import { render } from '@testing-library/react' -import Article from './Article' +import Article from '../../src/components/Article/Article' import '@testing-library/jest-dom' describe('Article', () => { diff --git a/src/components/CV/Cv.test.jsx b/__test__/components/Cv.test.jsx similarity index 97% rename from src/components/CV/Cv.test.jsx rename to __test__/components/Cv.test.jsx index a50e5d7..36b8496 100644 --- a/src/components/CV/Cv.test.jsx +++ b/__test__/components/Cv.test.jsx @@ -1,6 +1,6 @@ /* eslint-env jest */ import { render } from '@testing-library/react' -import Cv from './Cv' +import Cv from '../../src/components/Cv/Cv' import '@testing-library/jest-dom' describe('Cv', () => { diff --git a/src/components/ExternalLink/ExsternalLink.test.jsx b/__test__/components/ExsternalLink.test.jsx similarity index 91% rename from src/components/ExternalLink/ExsternalLink.test.jsx rename to __test__/components/ExsternalLink.test.jsx index 40c72ac..506d457 100644 --- a/src/components/ExternalLink/ExsternalLink.test.jsx +++ b/__test__/components/ExsternalLink.test.jsx @@ -1,6 +1,6 @@ /* eslint-env jest */ import { render, screen } from '@testing-library/react' -import ExternalLink from './ExternalLink' +import ExternalLink from '../../src/components/ExternalLink/ExternalLink' import '@testing-library/jest-dom' describe('ExternalLink', () => { diff --git a/src/components/Footer/Footer.test.jsx b/__test__/components/Footer.test.jsx similarity index 81% rename from src/components/Footer/Footer.test.jsx rename to __test__/components/Footer.test.jsx index 822bb13..b6882e6 100644 --- a/src/components/Footer/Footer.test.jsx +++ b/__test__/components/Footer.test.jsx @@ -1,7 +1,7 @@ /* eslint-env jest */ import { render } from '@testing-library/react' -import Footer from './Footer' import '@testing-library/jest-dom' +import Footer from '@/components/Footer/Footer' describe('Footer', () => { it('renders without crashing', () => { diff --git a/src/components/Grid/Grid.test.jsx b/__test__/components/Grid.test.jsx similarity index 91% rename from src/components/Grid/Grid.test.jsx rename to __test__/components/Grid.test.jsx index a769f6d..4594a17 100644 --- a/src/components/Grid/Grid.test.jsx +++ b/__test__/components/Grid.test.jsx @@ -1,7 +1,7 @@ /* eslint-env jest */ import { render } from '@testing-library/react' -import Grid from './Grid' import '@testing-library/jest-dom' +import Grid from '@/components/Grid/Grid' describe('Grid', () => { it('renders without crashing', () => { diff --git a/src/components/Header/Header.test.jsx b/__test__/components/Header.test.jsx similarity index 88% rename from src/components/Header/Header.test.jsx rename to __test__/components/Header.test.jsx index 59c6b21..200a48a 100644 --- a/src/components/Header/Header.test.jsx +++ b/__test__/components/Header.test.jsx @@ -1,6 +1,6 @@ /* eslint-env jest */ import { render, screen } from '@testing-library/react' -import Header from './Header' +import Header from '../../src/components/Header/Header' import '@testing-library/jest-dom' describe('Header', () => { diff --git a/src/pages/writing/index.test.jsx b/__test__/pages/Writing.test.jsx similarity index 97% rename from src/pages/writing/index.test.jsx rename to __test__/pages/Writing.test.jsx index 9b252d7..1ee61e7 100644 --- a/src/pages/writing/index.test.jsx +++ b/__test__/pages/Writing.test.jsx @@ -1,7 +1,7 @@ /* eslint-env jest */ import { render } from '@testing-library/react' import '@testing-library/jest-dom' -import Writing from '.' +import Writing from '../../src/pages/writing' jest.mock('next/head', () => { return { diff --git a/public/sitemap-0.xml b/public/sitemap-0.xml index 02723b7..77e9427 100644 --- a/public/sitemap-0.xml +++ b/public/sitemap-0.xml @@ -1,8 +1,8 @@ -https://www.aaronjy.me/2024-08-22T15:02:11.183Zdaily0.7 -https://www.aaronjy.me/cv/2024-08-22T15:02:11.183Zdaily0.7 -https://www.aaronjy.me/writing/2024-08-22T15:02:11.183Zdaily0.7 -https://www.aaronjy.me/writing/static-site-on-google-cloud/2024-08-22T15:02:11.183Zdaily0.7 -https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/2024-08-22T15:02:11.183Zdaily0.7 +https://www.aaronjy.me/2024-08-22T18:43:48.272Zdaily0.7 +https://www.aaronjy.me/cv/2024-08-22T18:43:48.272Zdaily0.7 +https://www.aaronjy.me/writing/2024-08-22T18:43:48.272Zdaily0.7 +https://www.aaronjy.me/writing/static-site-on-google-cloud/2024-08-22T18:43:48.272Zdaily0.7 +https://www.aaronjy.me/writing/support-content-filte-structure-changes-on-a-static-site/2024-08-22T18:43:48.272Zdaily0.7 \ No newline at end of file