Skip to content

Commit

Permalink
BC-5936 - ignore coverage
Browse files Browse the repository at this point in the history
for console mikroorm config findOneOrFailHandler
  • Loading branch information
virgilchiriac committed Jan 8, 2024
1 parent efe9073 commit 140883c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/server/src/mikro-orm.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import type { MikroOrmModuleSyncOptions } from '@mikro-orm/nestjs/typings';
import { ALL_ENTITIES } from '@shared/domain/entity';
import { FileEntity } from '@modules/files/entity';
Expand All @@ -15,6 +16,7 @@ export const mikroOrmConfig: MikroOrmModuleSyncOptions = {
entities: [...ALL_ENTITIES, FileEntity, FileRecord],
allowGlobalContext: true,
findOneOrFailHandler: (entityName: string, where: Dictionary | IPrimaryKey) =>
/* istanbul ignore next */
new NotFoundException(`The requested ${entityName}: ${JSON.stringify(where)} has not been found.`),
migrations: {
tableName: 'migrations', // name of database table with log of executed transactions
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sonar.sources=.
sonar.tests=.
sonar.test.inclusions=**/*.spec.ts
sonar.exclusions=**/*.js,jest.config.ts,globalSetup.ts,globalTeardown.ts,**/*.app.ts,**/seed-data/*.ts
sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts
sonar.coverage.exclusions=**/board-management.uc.ts,**/*.module.ts,**/*.factory.ts,mikro-orm.config.ts
sonar.cpd.exclusions=**/controller/dto/*.ts
sonar.javascript.lcov.reportPaths=merged-lcov.info
sonar.typescript.tsconfigPaths=tsconfig.json,src/apps/server/tsconfig.app.json

0 comments on commit 140883c

Please sign in to comment.