Skip to content

fix output of reporter #3

fix output of reporter

fix output of reporter #3

GitHub Actions / JEST Tests succeeded Nov 20, 2024 in 1s

87 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/jest-junit.xml

87 tests were completed in 8s with 87 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
{classname}-AppController 2✅ 127ms
{classname}-AttachmentsService 2✅ 261ms
{classname}-AuthGuard 3✅ 303ms
{classname}-AuthService 14✅ 6s
{classname}-CasesController 5✅ 856ms
{classname}-CasesService 5✅ 6s
{classname}-IncidentsController 3✅ 441ms
{classname}-IncidentsService 3✅ 484ms
{classname}-InPersonVisitsService 4✅ 307ms
{classname}-MemosController 2✅ 334ms
{classname}-MemosService 2✅ 269ms
{classname}-PostInPersonVisitDto transform tests 2✅ 153ms
{classname}-RequestPreparerService 14✅ 6s
{classname}-ServiceRequestsController 3✅ 448ms
{classname}-ServiceRequestsService 3✅ 331ms
{classname}-SupportNetworkService 3✅ 275ms
{classname}-TokenRefresherService 8✅ 329ms
{classname}-UtilitiesService 9✅ 225ms

✅ {classname}-AppController

AppController › root-should return "Hello world! This is the visitz-api."
  ✅ should return "Hello world! This is the visitz-api."
AppController › root-should return "This is the caseload API endpoint."
  ✅ should return "This is the caseload API endpoint."

✅ {classname}-AttachmentsService

AttachmentsService-should be defined
  ✅ should be defined
AttachmentsService › getSingleAttachmentRecord tests-should return a nested attachment entity given good inputs
  ✅ should return a nested attachment entity given good inputs

✅ {classname}-AuthGuard

AuthGuard-should be defined
  ✅ should be defined
AuthGuard › canActivate tests-should always return true when skipping
  ✅ should always return true when skipping
AuthGuard › canActivate tests-should return the result of getRecordAndValidate when not skipping
  ✅ should return the result of getRecordAndValidate when not skipping

✅ {classname}-AuthService

AuthService-should be defined
  ✅ should be defined
AuthService › getRecordAndValidate tests-should return true with valid record
  ✅ should return true with valid record
AuthService › getRecordAndValidate tests-should return false with invalid record
  ✅ should return false with invalid record
  ✅ should return false with invalid record
AuthService › grabRecordInfo tests-returns an array of [id, type] when the correct url format is passed
  ✅ returns an array of [id, type] when the correct url format is passed
AuthService › grabRecordInfo tests-throws an error when the enum doesn't match the record type
  ✅ throws an error when the enum doesn't match the record type
AuthService › grabRecordInfo tests-throws an error when the parameter doesn't exist for id
  ✅ throws an error when the parameter doesn't exist for id
AuthService › getAssignedIdirUpstream tests-should return idir string given good input
  ✅ should return idir string given good input
  ✅ should return idir string given good input
AuthService › getAssignedIdirUpstream tests-should return null when idir not in response
  ✅ should return null when idir not in response
  ✅ should return null when idir not in response
AuthService › getAssignedIdirUpstream tests-Should return null on axios error
  ✅ Should return null on axios error
  ✅ Should return null on axios error
AuthService › getAssignedIdirUpstream tests-should return null on token refresh error
  ✅ should return null on token refresh error

✅ {classname}-CasesController

CasesController-should be defined
  ✅ should be defined
CasesController › getSingleCaseSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesController › getSingleCaseInPersonVisitRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesController › postSingleCaseInPersonVisitRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesController › getSingleCaseAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-CasesService

CasesService-should be defined
  ✅ should be defined
CasesService › getSingleCaseSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesService › getSingleCaseInPersonVisitRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesService › postSingleCaseInPersonVisitRecord tests-should return nested values given good input
  ✅ should return nested values given good input
CasesService › getSingleCaseAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-IncidentsController

IncidentsController-should be defined
  ✅ should be defined
IncidentsController › getSingleIncidentSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
IncidentsController › getSingleIncidentAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-IncidentsService

IncidentsService-should be defined
  ✅ should be defined
IncidentsService › getSingleIncidentSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
IncidentsService › getSingleIncidentAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-InPersonVisitsService

InPersonVisitsService-should be defined
  ✅ should be defined
InPersonVisitsService › getSingleInPersonVisitRecord tests-should return list values given good input
  ✅ should return list values given good input
  ✅ should return list values given good input
InPersonVisitsService › postSingleInPersonVisitRecord tests-should return post values given good input
  ✅ should return post values given good input

✅ {classname}-MemosController

MemosController-should be defined
  ✅ should be defined
MemosController › getSingleMemoAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-MemosService

MemosService-should be defined
  ✅ should be defined
MemosService › getSingleMemoAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-PostInPersonVisitDto transform tests

PostInPersonVisitDto transform tests-should transform the date when given good, past ISO-8601 input
  ✅ should transform the date when given good, past ISO-8601 input
  ✅ should transform the date when given good, past ISO-8601 input

✅ {classname}-RequestPreparerService

RequestPreparerService-should be defined
  ✅ should be defined
RequestPreparerService › prepareHeadersAndParams tests-correctly prepares headers and params with no date or row number parameter
  ✅ correctly prepares headers and params with no date or row number parameter
  ✅ correctly prepares headers and params with no date or row number parameter
RequestPreparerService › prepareHeadersAndParams tests-correctly prepares headers and params with some parameters, but not all
  ✅ correctly prepares headers and params with some parameters, but not all
  ✅ correctly prepares headers and params with some parameters, but not all
RequestPreparerService › prepareHeadersAndParams tests-correctly prepares headers and params with all parameters filled
  ✅ correctly prepares headers and params with all parameters filled
RequestPreparerService › sendGetRequest tests-provides a response on sucessful http service call
  ✅ provides a response on sucessful http service call
RequestPreparerService › sendGetRequest tests-Should return HttpException with matching status on axios error
  ✅ Should return HttpException with matching status on axios error
RequestPreparerService › sendGetRequest tests-Should return HttpException with status 204 on 404 from upstream
  ✅ Should return HttpException with status 204 on 404 from upstream
RequestPreparerService › sendGetRequest tests-Should return HttpException with status 500 on bearer token undefined
  ✅ Should return HttpException with status 500 on bearer token undefined
RequestPreparerService › sendPostRequest tests-provides a response on sucessful http service call
  ✅ provides a response on sucessful http service call
RequestPreparerService › sendPostRequest tests-Should return HttpException with matching status on axios error
  ✅ Should return HttpException with matching status on axios error
RequestPreparerService › sendPostRequest tests-Should return HttpException with status 204 on 404 from upstream
  ✅ Should return HttpException with status 204 on 404 from upstream
RequestPreparerService › sendPostRequest tests-Should return HttpException with status 500 on bearer token undefined
  ✅ Should return HttpException with status 500 on bearer token undefined

✅ {classname}-ServiceRequestsController

ServiceRequestsController-should be defined
  ✅ should be defined
ServiceRequestsController › getSingleSRSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
ServiceRequestsController › getSingleSRAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-ServiceRequestsService

ServiceRequestsService-should be defined
  ✅ should be defined
ServiceRequestsService › getSingleSRSupportNetworkInformationRecord tests-should return nested values given good input
  ✅ should return nested values given good input
ServiceRequestsService › getSingleSRAttachmentRecord tests-should return nested values given good input
  ✅ should return nested values given good input

✅ {classname}-SupportNetworkService

SupportNetworkService-should be defined a
  ✅ should be defined a
SupportNetworkService › getSingleSupportNetworkInformationRecord tests-should return list values given good input
  ✅ should return list values given good input
  ✅ should return list values given good input

✅ {classname}-TokenRefresherService

TokenRefresherService-should be defined
  ✅ should be defined
TokenRefresherService › refreshUpstreamBearerToken tests-should return token on cache hit
  ✅ should return token on cache hit
TokenRefresherService › refreshUpstreamBearerToken tests-should return token on cache miss with upstream success
  ✅ should return token on cache miss with upstream success
TokenRefresherService › refreshUpstreamBearerToken tests-should return undefined on cache miss with upstream fail
  ✅ should return undefined on cache miss with upstream fail
TokenRefresherService › authenticateUpstream tests-should return access token and expiry on success
  ✅ should return access token and expiry on success
TokenRefresherService › authenticateUpstream tests-should return [undefined, undefined] on axios error
  ✅ should return [undefined, undefined] on axios error
TokenRefresherService › authenticateUpstream tests-should return [undefined, undefined] on generic error
  ✅ should return [undefined, undefined] on generic error
  ✅ should return [undefined, undefined] on generic error

✅ {classname}-UtilitiesService

UtilitiesService-should be defined
  ✅ should be defined
UtilitiesService › convertISODateToUpstreamFormat tests-should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
  ✅ should format an ISO-8601 Date to format MM/DD/YYYY HH:mm:ss in UTC
UtilitiesService › convertISODateToUpstreamFormat tests-should return undefined on unexpected date format
  ✅ should return undefined on unexpected date format
  ✅ should return undefined on unexpected date format
UtilitiesService › isPastISO8601Date tests-should return a string upon being given a past ISO-8601 date
  ✅ should return a string upon being given a past ISO-8601 date
UtilitiesService › isPastISO8601Date tests-should throw BadRequestException on future date or unexpected input format
  ✅ should throw BadRequestException on future date or unexpected input format
  ✅ should throw BadRequestException on future date or unexpected input format