diff --git a/.storybook/main.js b/.storybook/main.js index d1506f5e8..6449361d8 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -1,5 +1,5 @@ module.exports = { - stories: ['../components/**/*.story.mdx', '../components/**/*.story.*'], + stories: ['../src/components/**/*.story.mdx', '../src/components/**/*.story.*'], addons: [ 'storybook-dark-mode', '@storybook/addon-links', diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 7365fc753..000000000 --- a/jest.config.js +++ /dev/null @@ -1,16 +0,0 @@ -const nextJest = require('next/jest'); - -const createJestConfig = nextJest({ - dir: './', -}); - -const customJestConfig = { - setupFilesAfterEnv: ['/jest.setup.js'], - moduleNameMapper: { - '^@/components/(.*)$': '/components/$1', - '^@/pages/(.*)$': '/pages/$1', - }, - testEnvironment: 'jest-environment-jsdom', -}; - -module.exports = createJestConfig(customJestConfig); diff --git a/jest.setup.js b/jest.setup.js deleted file mode 100644 index 666127af3..000000000 --- a/jest.setup.js +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom/extend-expect'; diff --git a/tsconfig.json b/tsconfig.json index 99710e857..3ff0501fd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,6 @@ "jsx": "preserve", "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"], "exclude": ["node_modules"] }