Skip to content

added necessary checks from CDP checklist #111

added necessary checks from CDP checklist

added necessary checks from CDP checklist #111

Triggered via pull request July 8, 2024 11:25
@SajuJSajuJ
synchronize #54
feature/cdp-prep
Status Failure
Total duration 1m 41s
Artifacts

check-pull-request.yml

on: pull_request
Run Pull Request Checks
1m 32s
Run Pull Request Checks
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
populateDbHandler › should load data into MongoDB collections and start the server: src/helpers/db/populate-db.js#L174
TypeError: Cannot read properties of undefined (reading 'error') at error (src/helpers/db/populate-db.js:174:12) at Object.<anonymous> (src/helpers/db/populate-db.test.js:64:5)
populateDbHandler › readJsonFile › should read and parse JSON file and should read multiple files and insert combined data into the collection: src/helpers/db/populate-db.js#L251
TypeError: Cannot read properties of undefined (reading 'info') at info (src/helpers/db/populate-db.js:251:10) at Object.<anonymous> (src/helpers/db/populate-db.test.js:114:40)
updateDbPestHandler › should respond with error message when loadData fails: src/helpers/db/update-db-pest.js#L25
TypeError: Cannot read properties of undefined (reading 'error') at error (src/helpers/db/update-db-pest.js:25:12) at Object.<anonymous> (src/helpers/db/update-db-pest.test.js:66:5)
createMongoDBIndexes › should create indexes and log success messages: src/helpers/db/create-ds-indexes.js#L15
TypeError: Cannot read properties of undefined (reading 'error') at error (src/helpers/db/create-ds-indexes.js:15:12) at Object.<anonymous> (src/helpers/db/create-ds-indexes.test.js:36:5)
createMongoDBIndexes › should log an error message if index creation fails: src/helpers/db/create-ds-indexes.js#L15
TypeError: Cannot read properties of undefined (reading 'error') at error (src/helpers/db/create-ds-indexes.js:15:12) at Object.<anonymous> (src/helpers/db/create-ds-indexes.test.js:49:5)
countryController handler › should return 500 and error message on getCountries failure: src/api/search/country-controller.js#L12
TypeError: Cannot read properties of undefined (reading 'info') at Object.info [as handler] (src/api/search/country-controller.js:12:14) at Object.<anonymous> (src/api/search/country-controller.test.js:38:5)
Run Pull Request Checks
Process completed with exit code 1.
Run Pull Request Checks
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/