Unit test fails in loopback-connector-mongodb: "returns patient where id equal to samplePatientId"

Aperta
#776 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@alexisTdr1 ci sta già lavorando.

Dal 24/5/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

Steps to reproduce

clone the repository

install dependencies:
npm install

run tests:
npm test

observe the failing test

Current Behavior

  1 failing

  1) juggler-v4
       relations
         hasMany through
           fetch scoped instances with paging filters
             with filter where
               returns patient where id equal to samplePatientId:
     Uncaught AssertionError: expected Array [] to have property length of 1 (got 0)

this happend even without any modification to the codebase, using a clean clone of the repository

Expected Behavior

All tests should pass successfully after a clean install and test run (npm install && npm test) on a properly configured environment, without requiring any code changes or manual setup beyond what is described in the repository.

Link to reproduction sandbox

Additional information

darwin arm64 23.11.0

npm warn config production Use `--omit=dev` instead.
[email protected] /Users/alexito/Documents/LoopBack/loopback-connector-mongodb
├── [email protected]

Related Issues

See Reporting Issues for more tips on writing good issues

Lingua principale
JavaScript
Stelle
184
Fork
238
Merge medio
9g 9h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di loopbackio/loopback-connector-mongodb

Tutte le issue di loopbackio/loopback-connector-mongodb

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.