-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anmol Sharma <anmolsharma0234@gmail.com>
- Loading branch information
1 parent
34e9cbe
commit 571f0ad
Showing
8 changed files
with
45 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Config } from '@jest/types'; | ||
|
||
const config: Config.InitialOptions = { | ||
preset: 'ts-jest', | ||
verbose: true, | ||
moduleFileExtensions: ['js', 'json', 'ts'], | ||
rootDir: '.', | ||
roots: ['<rootDir>/src/'], | ||
testRegex: '.*\\.spec\\.ts$', | ||
transform: { | ||
'^.+\\.(t|j)s$': 'ts-jest', | ||
}, | ||
collectCoverageFrom: ['<rootDir>/src/**/*.(t|j)s'], | ||
coveragePathIgnorePatterns: [ | ||
'.*.controller.ts', | ||
'.*.module.ts', | ||
'.*.entity.ts', | ||
'.*.dto.ts', | ||
'.*.spec.ts', | ||
'.*.module-definition.ts', | ||
'.*.configuration.ts', | ||
'.*.configuration.model.ts', | ||
'.*./main.ts', | ||
'node_modules', | ||
], | ||
coverageDirectory: './coverage', | ||
testEnvironment: 'node', | ||
moduleNameMapper: { | ||
'@/(.*)': '<rootDir>/src/$1', | ||
}, | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { ServiceStatus } from '@/common/enum'; | ||
|
||
@Injectable() | ||
export class AppService { | ||
getHello(): string { | ||
return 'Hello World!!'; | ||
getHealth(): string { | ||
return ServiceStatus.HEALTHY; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export enum ServiceStatus { | ||
HEALTHY = 'HEALTHY', | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.