From 262f9063226c4bae58127c679ac73429b59909d6 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Wed, 7 Apr 2021 22:27:09 +0200 Subject: [PATCH] Fix site --- site/{src => }/tests/IconOverview.test.tsx | 4 ++-- site/{src => }/tests/index.test.tsx | 6 +++--- site/{src => }/tests/test-utils.tsx | 0 site/tsconfig.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename site/{src => }/tests/IconOverview.test.tsx (84%) rename site/{src => }/tests/index.test.tsx (77%) rename site/{src => }/tests/test-utils.tsx (100%) diff --git a/site/src/tests/IconOverview.test.tsx b/site/tests/IconOverview.test.tsx similarity index 84% rename from site/src/tests/IconOverview.test.tsx rename to site/tests/IconOverview.test.tsx index 916dd6c..2d1b8e8 100644 --- a/site/src/tests/IconOverview.test.tsx +++ b/site/tests/IconOverview.test.tsx @@ -1,6 +1,6 @@ -import { getAllData } from '../lib/icons'; +import { getAllData } from '../src/lib/icons'; import { renderHook } from '@testing-library/react-hooks'; -import useSearch from '../lib/useSearch'; +import useSearch from '../src/lib/useSearch'; describe('Icon Overview', () => { it('can search filter icons', async () => { diff --git a/site/src/tests/index.test.tsx b/site/tests/index.test.tsx similarity index 77% rename from site/src/tests/index.test.tsx rename to site/tests/index.test.tsx index 78e0c26..8f0e036 100644 --- a/site/src/tests/index.test.tsx +++ b/site/tests/index.test.tsx @@ -1,10 +1,10 @@ import { act, fireEvent, screen } from '@testing-library/react'; -import Index from '../pages/index'; +import Index from '../src/pages/index'; import React from 'react'; import { render } from './test-utils'; -import { getAllData } from '../lib/icons'; +import { getAllData } from '../src/lib/icons'; -import App from '../pages/_app'; +import App from '../src/pages/_app'; describe('App', () => { it('renders without crashing', () => { diff --git a/site/src/tests/test-utils.tsx b/site/tests/test-utils.tsx similarity index 100% rename from site/src/tests/test-utils.tsx rename to site/tests/test-utils.tsx diff --git a/site/tsconfig.json b/site/tsconfig.json index c5d53d8..600a065 100644 --- a/site/tsconfig.json +++ b/site/tsconfig.json @@ -15,5 +15,5 @@ "jsx": "preserve" }, "exclude": ["node_modules"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"] + "include": ["next-env.d.ts", "src/**/*.ts", "src/**/*.tsx"] }