Skip to content

ci(rebase): merge master #121

ci(rebase): merge master

ci(rebase): merge master #121

GitHub Actions / Test Report (20.18.0) succeeded Nov 11, 2024 in 1s

73 passed, 0 failed and 0 skipped

Tests passed successfully

✅ ./junit.xml

73 tests were completed in 9s with 73 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/test/app.controller.spec.ts 4✅ 368ms
src/characters/test/characters.controller.spec.ts 4✅ 846ms
src/characters/test/characters.service.spec.ts 4✅ 526ms
src/config/test/configuration.spec.ts 31✅ 3s
src/users/test/users.controller.spec.ts 6✅ 387ms
src/users/test/users.service.spec.ts 10✅ 409ms
test/app.e2e-spec.ts 14✅ 3s

✅ src/test/app.controller.spec.ts

AppController
  ✅ should be defined
  ✅ should return "Hello World!"
  ✅ should return test_key
  ✅ should return custom util

✅ src/characters/test/characters.controller.spec.ts

CharactersController
  ✅ should be defined
  ✅ should be return characters without params
  ✅ should be return characters with params
  ✅ should be return characters exception with invalids params

✅ src/characters/test/characters.service.spec.ts

CharactersService
  ✅ should be defined
  ✅ should be return characters without params
  ✅ should be return characters with params
  ✅ should be return characters exception with invalid params

✅ src/config/test/configuration.spec.ts

configuration › appConfig.project
  ✅ should have a api-prefix
  ✅ should have a api-prefix default
  ✅ should have a project name
  ✅ should have a project version
  ✅ should have a project description
  ✅ should have a project author
  ✅ should have a project repository
  ✅ should have a project bugs
  ✅ should have a project homepage
configuration › appConfig.server
  ✅ should have isProd false
  ✅ should have isProd true
  ✅ should have an app stage
  ✅ should have a PORT
  ✅ should return the default port when it is not defined
  ✅ should have a context
  ✅ should have a default context
  ✅ should have a origins
  ✅ should have a default origins
  ✅ should have a allowed headers
  ✅ should have a allowed methods
  ✅ should have a propagate headers
  ✅ should have a empty propagate headers
  ✅ should have a corsEnabled
  ✅ should return false is disabled cors
  ✅ should have a corsCredentials
configuration › appConfig.health
  ✅ should have a skipHealthCheck
  ✅ should dont have a skipHealthCheck
configuration › appConfig.swagger
  ✅ should have a swagger path
  ✅ should have a default swagger path
  ✅ should have a swagger disabled
  ✅ should have a swagger enabled

✅ src/users/test/users.controller.spec.ts

UsersController
  ✅ should be defined
  ✅ should be return find user by id
  ✅ should be return users
  ✅ should be create user
  ✅ should be update user
  ✅ should be delete user

✅ src/users/test/users.service.spec.ts

UsersService
  ✅ should be defined
  ✅ should be return all users
  ✅ should be return exception in findAll when page greater than the total pages
  ✅ should be return user find by id
  ✅ should be return error exception when find user by id and dont exist
  ✅ should be create a new user
  ✅ should be update user info if the user id exist
  ✅ should be return error exception when user id dont exist for update info
  ✅ should be remove user by id
  ✅ should be return error exception when user id dont exist for remove user

✅ test/app.e2e-spec.ts

AppController (e2e)
  ✅ (GET) /
  ✅ (GET) /test-env
  ✅ (GET) /my-util
  ✅ (GET) /health/liveness
  ✅ (GET) /health/readiness
  ✅ (GET) /characters
  ✅ (GET) /characters - with query params
  ✅ (GET) /characters - with invalid query params
  ✅ (GET) /users
  ✅ (GET) /users?page=2&size=5 - with pagination
  ✅ (GET) /users/{id}
  ✅ (POST) /users
  ✅ (PUT) /users/{id}
  ✅ (DELETE) /users/{id}