diff --git a/config/test/jest.config.js b/config/test/jest.config.js deleted file mode 100644 index 989dd54..0000000 --- a/config/test/jest.config.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = { - preset: 'ts-jest', - testEnvironment: 'jsdom', - roots: ['/src'], - testMatch: ['**/__tests__/**/*.test.{ts,tsx}', '**/*.test.{ts,tsx}'], - collectCoverageFrom: [ - 'src/**/*.{ts,tsx}', - '!src/**/*.d.ts', - '!src/**/*.stories.{ts,tsx}', - '!src/**/__tests__/**', - ], - coverageThreshold: { - global: { - branches: 41, - functions: 47, - lines: 52, - statements: 51, - }, - }, - coverageReporters: ['text', 'lcov', 'html', 'json'], - coverageDirectory: 'coverage', - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - moduleNameMapper: { - '^@/(.*)$': '/src/$1', - }, - transform: { - '^.+\\.(ts|tsx)$': [ - 'ts-jest', - { - tsconfig: 'tsconfig.test.json', - }, - ], - }, - transformIgnorePatterns: [ - 'node_modules/(?!(nanoid|next-auth|@auth)/)', - ], - setupFilesAfterEnv: ['/jest.setup.js'], - testTimeout: 10000, - verbose: true, - maxWorkers: '50%', -}; \ No newline at end of file diff --git a/jest.config.js b/jest.config.js deleted file mode 120000 index 7f013e1..0000000 --- a/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -config/test/jest.config.js \ No newline at end of file diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..409d9f0 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,42 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'jsdom', + roots: ['/src'], + testMatch: ['**/__tests__/**/*.test.{ts,tsx}', '**/*.test.{ts,tsx}'], + collectCoverageFrom: [ + 'src/**/*.{ts,tsx}', + '!src/**/*.d.ts', + '!src/**/*.stories.{ts,tsx}', + '!src/**/__tests__/**', + ], + coverageThreshold: { + global: { + branches: 50, + functions: 55, + lines: 60, + statements: 60, + }, + }, + coverageReporters: ['text', 'lcov', 'html', 'json'], + coverageDirectory: 'coverage', + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + moduleNameMapper: { + '^@/(.*)$': '/src/$1', + }, + transform: { + '^.+\\.(ts|tsx)$': [ + 'ts-jest', + { + tsconfig: 'tsconfig.test.json', + }, + ], + }, + transformIgnorePatterns: [ + 'node_modules/(?!(nanoid|next-auth|@auth)/)', + ], + setupFilesAfterEnv: ['/jest.setup.js'], + testTimeout: 10000, + verbose: true, + maxWorkers: '50%', + cacheDirectory: '/tmp/jest-cache', +};