Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve test coverage #154

Closed
wants to merge 2 commits into from

feat: cache module

0b27507
Select commit
Loading
Failed to load commit list.
Closed

chore: improve test coverage #154

feat: cache module
0b27507
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action May 15, 2024 in 0s

6 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 6
           

Coverage increased per file
===========================
+ packages/nestjs-common/src/decorators/auth-user.decorator.ts  100.0
+ packages/nestjs-common/src/common/common-entity.dto.ts  85.714
+ packages/typeorm-common/src/proxies/entity-manager.proxy.ts  30.0
+ packages/typeorm-common/src/proxies/transaction.proxy.ts  20.0
+ packages/nestjs-common/src/modules/utils/create-settings-provider.ts  100.0
+ packages/nestjs-auth-jwt/src/auth-jwt.module-definition.ts  2.941
+ packages/nestjs-otp/src/entities/otp-postgres.entity.ts  100.0
+ packages/nestjs-otp/src/exceptions/entity-not-found.exception.ts  60.0
+ packages/nestjs-otp/src/otp.module.ts  27.272
+ packages/nestjs-otp/src/index.ts  100.0
+ packages/nestjs-common/src/reference/reference-id.dto.ts  80.0
+ packages/nestjs-federated/src/entities/federated-postgres.entity.ts  100.0
+ packages/nestjs-core/src/modules/negotiate-controller.ts  100.0
+ packages/nestjs-core/src/index.ts  100.0
+ packages/nestjs-core/src/modules/defer-external.ts  100.0
+ packages/nestjs-common/src/audit/dto/audit.dto.ts  72.727
+ packages/nestjs-federated/src/index.ts  100.0
+ packages/nestjs-authentication/src/guards/auth.guard.ts  28.125
+ packages/nestjs-authentication/src/index.ts  100.0
+ packages/nestjs-exception/src/constants/error-codes.constants.ts  100.0
+ packages/nestjs-authentication/src/guards/fastify-auth.guard.ts  50.0
+ packages/nestjs-exception/src/utils/map-http-status.util.ts  100.0
+ packages/nestjs-common/src/index.ts  100.0
         

Complexity increasing per file
==============================
- packages/nestjs-cache/src/controllers/cache-crud.controller.ts  3
- packages/nestjs-cache/src/exceptions/entity-not-found.exception.spec.ts  1
- packages/nestjs-cache/src/services/cache-crud.service.ts  1
- packages/nestjs-cache/src/services/cache.service.ts  3
- packages/nestjs-cache/src/cache.types.spec.ts  1
- packages/nestjs-cache/src/cache.module.spec.ts  1
- packages/nestjs-cache/src/cache.module-definition.ts  3
- packages/nestjs-cache/src/exceptions/entity-not-found.exception.ts  1
- packages/nestjs-cache/src/dto/cache-paginated.dto.ts  1
- packages/nestjs-cache/src/exceptions/assignment-not-found.exception.spec.ts  1
- packages/nestjs-cache/src/cache.module.ts  2
- packages/nestjs-cache/src/dto/cache.dto.ts  1
- packages/nestjs-cache/src/exceptions/assignment-not-found.exception.ts  1
- packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts  2
- packages/nestjs-cache/src/cache.factory.ts  1
- packages/nestjs-cache/src/index.spec.ts  1
- packages/nestjs-cache/src/exceptions/cache-type-not-defined.exception.ts  1
- packages/nestjs-cache/src/exceptions/cache-type-not-defined.exception.spec.ts  1
- packages/nestjs-cache/src/config/cache-default.config.ts  2
- packages/nestjs-cache/src/cache.seeder.ts  2
- packages/nestjs-cache/src/services/cache.service.spec.ts  1
- packages/nestjs-exception/src/utils/map-http-status.util.spec.ts  1
- packages/nestjs-core/src/index.spec.ts  1
- packages/nestjs-common/src/modules/utils/create-settings-provider.spec.ts  1
- packages/nestjs-auth-jwt/src/auth-jwt.module-definition.spec.ts  1
- packages/nestjs-common/src/index.spec.ts  1
- packages/nestjs-exception/src/constants/error-codes.constants.spec.ts  1
- packages/nestjs-core/src/modules/defer-external.spec.ts  1
- packages/nestjs-otp/src/exceptions/otp-type-not-defined.exception.spec.ts  1
- packages/nestjs-authentication/src/index.spec.ts  1
- packages/nestjs-common/src/decorators/auth-user.decorator.spec.ts  1
- packages/nestjs-otp/src/exceptions/entity-not-found.exception.spec.ts  1
- packages/nestjs-otp/src/index.spec.ts  1
- packages/nestjs-federated/src/index.spec.ts  1
- packages/nestjs-core/src/modules/negotiate-controller.spec.ts  1
- packages/typeorm-common/src/proxies/entity-manager.proxy.spec.ts  1
         

Clones added
============
- packages/nestjs-cache/src/controllers/cache-crud.controller.ts  2
- packages/nestjs-cache/src/exceptions/entity-not-found.exception.spec.ts  1
- packages/nestjs-cache/src/services/cache.service.ts  3
- packages/nestjs-cache/src/cache.module-definition.ts  2
- packages/nestjs-cache/src/exceptions/entity-not-found.exception.ts  1
- packages/nestjs-cache/src/dto/cache.dto.ts  1
- packages/nestjs-cache/src/exceptions/assignment-not-found.exception.ts  1
- packages/nestjs-cache/src/controllers/cache-crud.controller.e2e-spec.ts  7
- packages/nestjs-cache/src/exceptions/cache-type-not-defined.exception.ts  1
- packages/nestjs-cache/src/services/cache.service.spec.ts  4
- packages/nestjs-core/src/modules/defer-external.spec.ts  2
- packages/nestjs-otp/src/exceptions/entity-not-found.exception.spec.ts  1
- packages/nestjs-authentication/src/guards/auth.guard.spec.ts  4
         

See the complete overview on Codacy

Annotations

Check notice on line 1 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L1

Expected: [None]; Actual: # Rockets NestJS Cache

Check notice on line 3 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L3

Expected: 80; Actual: 118

Check notice on line 51 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L51

Expected: 80; Actual: 92

Check notice on line 52 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L52

Expected: 80; Actual: 92

Check notice on line 53 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L53

Expected: 80; Actual: 94

Check notice on line 54 in packages/nestjs-cache/README.md

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

packages/nestjs-cache/README.md#L54

Expected: 80; Actual: 96