🐛 Fix storybook and remove Jest
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
stories: ['../components/**/*.story.mdx', '../components/**/*.story.*'],
|
stories: ['../src/components/**/*.story.mdx', '../src/components/**/*.story.*'],
|
||||||
addons: [
|
addons: [
|
||||||
'storybook-dark-mode',
|
'storybook-dark-mode',
|
||||||
'@storybook/addon-links',
|
'@storybook/addon-links',
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
const nextJest = require('next/jest');
|
|
||||||
|
|
||||||
const createJestConfig = nextJest({
|
|
||||||
dir: './',
|
|
||||||
});
|
|
||||||
|
|
||||||
const customJestConfig = {
|
|
||||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
|
||||||
moduleNameMapper: {
|
|
||||||
'^@/components/(.*)$': '<rootDir>/components/$1',
|
|
||||||
'^@/pages/(.*)$': '<rootDir>/pages/$1',
|
|
||||||
},
|
|
||||||
testEnvironment: 'jest-environment-jsdom',
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = createJestConfig(customJestConfig);
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
import '@testing-library/jest-dom/extend-expect';
|
|
||||||
@@ -15,6 +15,6 @@
|
|||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true
|
"incremental": true
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user