Amélioration du temps d'indexation #48
Annotations
5 errors and 1 warning
Run tests:
src/commands/__tests__/index.integration.ts#L108
expect(received).toEqual(expected) // deep equality
Expected: ArrayContaining [ObjectContaining {"_source": {"activitePrincipaleEtablissement": "79.06", "activitePrincipaleRegistreMetiersEtablissement": "", "activitePrincipaleUniteLegale": "79.06", "anneeCategorieEntreprise": "", "anneeEffectifsEtablissement": "", "anneeEffectifsUniteLegale": "", "caractereEmployeurEtablissement": "N", "caractereEmployeurUniteLegale": "N", "categorieEntreprise": "", "categorieJuridiqueUniteLegale": "1000", "codeCedex2Etablissement": "", "codeCedexEtablissement": "", "codeCommune2Etablissement": "", "codeCommuneEtablissement": "80001", "codePaysEtranger2Etablissement": "", "codePaysEtrangerEtablissement": "", "codePostal2Etablissement": "", "codePostalEtablissement": "80100", "complementAdresse2Etablissement": "", "complementAdresseEtablissement": "", "dateCreationEtablissement": "", "dateCreationUniteLegale": "", "dateDebut": "1984-12-25", "dateDernierTraitementEtablissement": "", "dateDernierTraitementUniteLegale": "", "denominationUniteLegale": "", "denominationUsuelle1UniteLegale": "", "denominationUsuelle2UniteLegale": "", "denominationUsuelle3UniteLegale": "", "denominationUsuelleEtablissement": "", "distributionSpeciale2Etablissement": "", "distributionSpecialeEtablissement": "", "economieSocialeSolidaireUniteLegale": "", "enseigne1Etablissement": "", "enseigne2Etablissement": "", "enseigne3Etablissement": "", "etablissementSiege": "true", "etatAdministratifEtablissement": "F", "etatAdministratifUniteLegale": "C", "identifiantAssociationUniteLegale": "", "indiceRepetition2Etablissement": "", "indiceRepetitionEtablissement": "", "libelleCedex2Etablissement": "", "libelleCedexEtablissement": "", "libelleCommune2Etablissement": "", "libelleCommuneEtablissement": "ABBEVILLE", "libelleCommuneEtranger2Etablissement": "", "libelleCommuneEtrangerEtablissement": "", "libellePaysEtranger2Etablissement": "", "libellePaysEtrangerEtablissement": "", "libelleVoie2Etablissement": "", "libelleVoieEtablissement": "DE DOULLENS", "nic": "00010", "nicSiegeUniteLegale": "00010", "nomUniteLegale": "DEBRAY", "nomUsageUniteLegale": "", "nombrePeriodesEtablissement": "1", "nombrePeriodesUniteLegale": "1", "nomenclatureActivitePrincipaleEtablissement": "NAP", "nomenclatureActivitePrincipaleUniteLegale": "NAP", "numeroVoie2Etablissement": "", "numeroVoieEtablissement": "", "prenom1UniteLegale": "MICHEL", "prenom2UniteLegale": "", "prenom3UniteLegale": "", "prenom4UniteLegale": "", "prenomUsuelUniteLegale": "MICHEL", "pseudonymeUniteLegale": "", "sexeUniteLegale": "M", "sigleUniteLegale": "", "siren": "005410345", "siret": "00541034500010", "statutDiffusionEtablissement": "O", "statutDiffusionUniteLegale": "O", "trancheEffectifsEtablissement": "", "trancheEffectifsUniteLegale": "", "typeVoie2Etablissement": "", "typeVoieEtablissement": "RTE", "unitePurgeeUniteLegale": "true"}}]
Received: [{"_id": "h4mJD44BXMJdrGgjYpeq", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "iImJD44BXMJdrGgjYpeq", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "iYmJD44BXMJdrGgjYpeq", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "iomJD44BXMJdrGgjYpeq", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "i4mJD44BXMJdrGgjYpeq", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "jImJD44BXMJdrGgjYper", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "jYmJD44BXMJdrGgjYper", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "jomJD44BXMJdrGgjYper", "_index": "stocketablissement-test-1.4.0-1709657645306", "_score": 1, "_source": [Object], "_type": "_doc"}, {"_id": "j4mJD44BXMJdrGgjYper", "_ignored": [Array], "_index": "
|
Run tests:
src/indexation/__tests__/bulkIndex.test.ts#L47
expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 2
Received number of calls: 0
at indexation/__tests__/bulkIndex.test.ts:47:26
at fulfilled (indexation/__tests__/bulkIndex.test.ts:5:58)
|
Run tests:
src/indexation/__tests__/bulkIndex.test.ts#L72
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
at indexation/__tests__/bulkIndex.test.ts:72:45
at fulfilled (indexation/__tests__/bulkIndex.test.ts:5:58)
|
Run tests:
src/indexation/__tests__/bulkIndex.test.ts#L87
expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 4
Received number of calls: 0
at indexation/__tests__/bulkIndex.test.ts:87:26
at fulfilled (indexation/__tests__/bulkIndex.test.ts:5:58)
|
Run tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading