feat: enhance Docker and environment configurations for development and production

This commit is contained in:
2026-03-06 18:56:53 +03:00
parent cdfd5778bf
commit 33c8eaa182
12 changed files with 249 additions and 68 deletions
+2
View File
@@ -3,6 +3,8 @@
/node_modules
/build
generated
# Logs
logs
*.log
+22
View File
@@ -0,0 +1,22 @@
import nextJest from 'next/jest'
const createJestConfig = nextJest({
dir: './',
})
const config = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
testMatch: ['**/*.spec.ts?(x)'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.spec.{ts,tsx}',
'!src/**/layout.tsx',
],
coverageDirectory: 'coverage',
}
export default createJestConfig(config)
+1 -1
View File
@@ -8,7 +8,7 @@ const createJestConfig = nextJest({
const config: Config = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
testRegex: '.*\\.spec\\.tsx?$',
testMatch: ['**/*.spec.ts?(x)'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
+1 -1
View File
@@ -25,5 +25,5 @@
".next/dev/types/**/*.ts",
"**/*.mts"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "jest.config.ts", "jest.setup.ts"]
}