Updating controller unit tests #4582
unit-tests.yaml
on: push
Matrix: Unit Tests (App)
Matrix: Unit Tests (Frontend)
Publish to Code Climate
0s
Annotations
24 errors
|
Unit Tests (App) (22.x)
Process completed with exit code 1.
|
|
Unit Tests (App) (20.x)
The operation was canceled.
|
|
Unit Tests (App) (20.x)
The strategy configuration was canceled because "test-app._22_x" failed
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of input mask components (phone number):
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L159
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:159:29
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of input components:
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L143
AssertionError: expected 2 to be 6 // Object.is equality
- Expected
+ Received
- 6
+ 2
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:143:29
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of dropdowns:
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L134
AssertionError: expected 6 to be 8 // Object.is equality
- Expected
+ Received
- 8
+ 6
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:134:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > there are correct numbers of disabled components when editable prop is false:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L244
AssertionError: expected 19 to be 23 // Object.is equality
- Expected
+ Received
- 23
+ 19
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:244:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of input mask components (phone number):
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L205
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:205:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of input components:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L187
AssertionError: expected 16 to be 21 // Object.is equality
- Expected
+ Received
- 21
+ 16
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:187:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of dropdowns:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L177
AssertionError: expected 15 to be 19 // Object.is equality
- Expected
+ Received
- 19
+ 15
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:177:29
|
|
tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts > SubmissionIntakeForm > checks categories for valid data:
frontend/tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts#L277
AssertionError: promise rejected "ValidationError: Registered in BC is a re… { …(6) }" instead of resolving
❯ tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts:277:27
Caused by: Caused by: ValidationError: Registered in BC is a required field
❯ createError node_modules/yup/index.js:351:21
❯ handleResult node_modules/yup/index.js:368:104
❯ validate node_modules/yup/index.js:391:5
❯ StringSchema.runTests node_modules/yup/index.js:756:7
❯ StringSchema._validate node_modules/yup/index.js:700:10
❯ node_modules/yup/index.js:795:58
❯ ObjectSchema.runTests node_modules/yup/index.js:756:7
❯ node_modules/yup/index.js:1861:12
❯ nextOnce node_modules/yup/index.js:742:7
❯ ObjectSchema.runTests node_modules/yup/index.js:746:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { value: { projectApplicantType: 'Business', isDevelopedInBC: 'No', registeredName: 'testString3' }, path: 'basic.isDevelopedInBc', params: { value: undefined, originalValue: undefined, label: 'Registered in BC', path: 'basic.isDevelopedInBc', spec: { strip: false, strict: false, abortEarly: true, recursive: true, disableStackTrace: false, nullable: false, optional: false, coerce: true, label: 'Registered in BC' }, disableStackTrace: false }, errors: [ 'Registered in BC is a required field' ], inner: [] }
|
|
tests/unit/service/contactService.spec.ts > contactService > calls updateContact with correct data:
frontend/tests/unit/service/contactService.spec.ts#L73
AssertionError: expected "spy" to be called with arguments: [ 'contact/contact123', …(1) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "contact/contact123",
+ "contact",
{
"contactApplicantRelationship": "applicant",
"contactId": "contact123",
"contactPreference": "email",
"createdAt": "2025-08-20T01:57:43.511Z",
Number of calls: 1
❯ tests/unit/service/contactService.spec.ts:73:20
|
|
Unhandled error:
frontend/node_modules/yup/index.js#L351
ValidationError: BC Housing is a required field
❯ createError node_modules/yup/index.js:351:21
❯ handleResult node_modules/yup/index.js:368:104
❯ validate node_modules/yup/index.js:391:5
❯ StringSchema.runTests node_modules/yup/index.js:756:7
❯ StringSchema._validate node_modules/yup/index.js:700:10
❯ node_modules/yup/index.js:795:58
❯ ObjectSchema.runTests node_modules/yup/index.js:756:7
❯ node_modules/yup/index.js:1861:12
❯ nextOnce node_modules/yup/index.js:742:7
❯ ObjectSchema.runTests node_modules/yup/index.js:746:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { value: { projectName: 'testString1', projectDescription: 'testString2', hasRentalUnits: 'Yes', financiallySupportedBC: 'No', financiallySupportedIndigenous: 'No', financiallySupportedNonProfit: 'No', financiallySupportedHousingCoop: 'No', rentalUnits: '1-9', indigenousDescription: 'No', nonProfitDescription: 'No', housingCoopDescription: 'No', singleFamilySelected: true, singleFamilyUnits: '1-9', multiFamilyUnits: 'No', otherUnitsDescription: 'No', otherUnits: 'No' }, path: 'housing.financiallySupportedBc', params: { value: undefined, originalValue: undefined, label: 'BC Housing', path: 'housing.financiallySupportedBc', spec: { strip: false, strict: false, abortEarly: true, recursive: true, disableStackTrace: false, nullable: false, optional: false, coerce: true, label: 'BC Housing' }, disableStackTrace: false }, errors: [ 'BC Housing is a required field' ], inner: [] }
This error originated in "tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of input mask components (phone number):
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L159
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:159:29
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of input components:
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L143
AssertionError: expected 2 to be 6 // Object.is equality
- Expected
+ Received
- 6
+ 2
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:143:29
|
|
tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts > EnquiryForm.vue > renders the correct amount of dropdowns:
frontend/tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts#L134
AssertionError: expected 6 to be 8 // Object.is equality
- Expected
+ Received
- 8
+ 6
❯ tests/unit/components/projectCommon/enquiry/EnquiryForm.spec.ts:134:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > there are correct numbers of disabled components when editable prop is false:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L244
AssertionError: expected 19 to be 23 // Object.is equality
- Expected
+ Received
- 23
+ 19
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:244:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of input mask components (phone number):
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L205
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:205:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of input components:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L187
AssertionError: expected 16 to be 21 // Object.is equality
- Expected
+ Received
- 21
+ 16
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:187:29
|
|
tests/unit/components/housing/submission/SubmissionForm.spec.ts > SubmissionForm.vue > renders the correct amount of dropdowns:
frontend/tests/unit/components/housing/submission/SubmissionForm.spec.ts#L177
AssertionError: expected 15 to be 19 // Object.is equality
- Expected
+ Received
- 19
+ 15
❯ tests/unit/components/housing/submission/SubmissionForm.spec.ts:177:29
|
|
tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts > SubmissionIntakeForm > checks categories for valid data:
frontend/tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts#L277
AssertionError: promise rejected "ValidationError: Registered in BC is a re… { …(6) }" instead of resolving
❯ tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts:277:27
Caused by: Caused by: ValidationError: Registered in BC is a required field
❯ createError node_modules/yup/index.js:351:21
❯ handleResult node_modules/yup/index.js:368:104
❯ validate node_modules/yup/index.js:391:5
❯ StringSchema.runTests node_modules/yup/index.js:756:7
❯ StringSchema._validate node_modules/yup/index.js:700:10
❯ node_modules/yup/index.js:795:58
❯ ObjectSchema.runTests node_modules/yup/index.js:756:7
❯ node_modules/yup/index.js:1861:12
❯ nextOnce node_modules/yup/index.js:742:7
❯ ObjectSchema.runTests node_modules/yup/index.js:746:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { value: { projectApplicantType: 'Business', isDevelopedInBC: 'No', registeredName: 'testString3' }, path: 'basic.isDevelopedInBc', params: { value: undefined, originalValue: undefined, label: 'Registered in BC', path: 'basic.isDevelopedInBc', spec: { strip: false, strict: false, abortEarly: true, recursive: true, disableStackTrace: false, nullable: false, optional: false, coerce: true, label: 'Registered in BC' }, disableStackTrace: false }, errors: [ 'Registered in BC is a required field' ], inner: [] }
|
|
tests/unit/service/contactService.spec.ts > contactService > calls updateContact with correct data:
frontend/tests/unit/service/contactService.spec.ts#L73
AssertionError: expected "spy" to be called with arguments: [ 'contact/contact123', …(1) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "contact/contact123",
+ "contact",
{
"contactApplicantRelationship": "applicant",
"contactId": "contact123",
"contactPreference": "email",
"createdAt": "2025-08-20T01:57:51.074Z",
Number of calls: 1
❯ tests/unit/service/contactService.spec.ts:73:20
|
|
Unhandled error:
frontend/node_modules/yup/index.js#L351
ValidationError: BC Housing is a required field
❯ createError node_modules/yup/index.js:351:21
❯ handleResult node_modules/yup/index.js:368:104
❯ validate node_modules/yup/index.js:391:5
❯ StringSchema.runTests node_modules/yup/index.js:756:7
❯ StringSchema._validate node_modules/yup/index.js:700:10
❯ node_modules/yup/index.js:795:58
❯ ObjectSchema.runTests node_modules/yup/index.js:756:7
❯ node_modules/yup/index.js:1861:12
❯ nextOnce node_modules/yup/index.js:742:7
❯ ObjectSchema.runTests node_modules/yup/index.js:746:24
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { value: { projectName: 'testString1', projectDescription: 'testString2', hasRentalUnits: 'Yes', financiallySupportedBC: 'No', financiallySupportedIndigenous: 'No', financiallySupportedNonProfit: 'No', financiallySupportedHousingCoop: 'No', rentalUnits: '1-9', indigenousDescription: 'No', nonProfitDescription: 'No', housingCoopDescription: 'No', singleFamilySelected: true, singleFamilyUnits: '1-9', multiFamilyUnits: 'No', otherUnitsDescription: 'No', otherUnits: 'No' }, path: 'housing.financiallySupportedBc', params: { value: undefined, originalValue: undefined, label: 'BC Housing', path: 'housing.financiallySupportedBc', spec: { strip: false, strict: false, abortEarly: true, recursive: true, disableStackTrace: false, nullable: false, optional: false, coerce: true, label: 'BC Housing' }, disableStackTrace: false }, errors: [ 'BC Housing is a required field' ], inner: [] }
This error originated in "tests/unit/components/shasIntake/SubmissionIntakeForm.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
|
|
Unit Tests (Frontend) (22.x)
The strategy configuration was canceled because "test-frontend._20_x" failed
|