Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-06 15:46:02 +03:00
parent 3f8cda4234
commit 891898864f
11 changed files with 1526 additions and 29 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { Config } from 'jest'
const config: Config = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'**/*.ts',
'!**/*.spec.ts',
'!**/*.module.ts',
'!main.ts',
],
coverageDirectory: '../coverage',
testEnvironment: 'node',
}
export default config
-17
View File
@@ -44,22 +44,5 @@
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.3"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}