mirror of
https://github.com/andwati/blog-nest.git
synced 2026-12-04 01:38:49 +00:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user