feat(lbac-2409): migration recruteurslba to jobs_partners #6034
preview.yml
on: pull_request
tests
/
Tests
3m 28s
Add deploy comment
3s
Annotations
3 errors
helpers/openapi/generateOpenapi.test.ts > generateOpenApiSchema > should generate proper schema:
shared/helpers/openapi/generateOpenapi.test.ts#L8
Error: Snapshot `generateOpenApiSchema > should generate proper schema 1` mismatched
- Expected
+ Received
@@ -8144,12 +8144,18 @@
"name": "partners_to_exclude",
"required": false,
"schema": {
"items": {
"enum": [
+ "offres_emploi_lba",
+ "OFFRES_EMPLOI_LBA",
+ "recruteurs_lba",
+ "RECRUTEURS_LBA",
"Hellowork",
+ "France Travail",
"RH Alternance",
+ "PASS",
],
"type": "string",
},
"type": [
"array",
❯ helpers/openapi/generateOpenapi.test.ts:8:15
|
src/http/controllers/v2/applications.controller.v2.test.ts > POST /v2/application > Return 202 and create an application using a recruter lba:
server/src/http/controllers/v2/applications.controller.v2.test.ts#L183
AssertionError: expected { …(24) } to deeply equal { _id: Any<ObjectId>, …(23) }
- Expected
+ Received
Object {
"_id": Any<ObjectId>,
"applicant_attachment_name": "cv.pdf",
"applicant_id": "67adfe4492a362bccebd782b",
"applicant_message_to_company": "",
"application_url": null,
"caller": "Un super Partenaire",
"company_address": "126 RUE DE L UNIVERSITE 75107 Paris",
"company_email": "[email protected]",
"company_feedback": null,
"company_feedback_reasons": null,
"company_naf": "Administration publique générale",
"company_name": "ASSEMBLEE NATIONALE",
"company_phone": null,
"company_recruitment_intention": null,
"company_siret": "11000001500013",
"created_at": Any<Date>,
"job_id": "67adfe4192a362bccebd7821",
- "job_origin": "offres_emploi_partenaires",
+ "job_origin": "recruteurs_lba",
"job_searched_by_user": null,
"job_title": "Une super offre d'alternance",
"last_update_at": Any<Date>,
"scan_status": "WAITING_FOR_SCAN",
"to_applicant_message_id": null,
"to_company_message_id": null,
}
❯ src/http/controllers/v2/applications.controller.v2.test.ts:183:25
|
tests / Tests
Process completed with exit code 1.
|