Skip to content

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

Open
@Alexis-Tiscareno

Description

@Alexis-Tiscareno

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions