loopbackio / loopbackio/loopback-connector-mongodb

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

Open
#776 2 comments 0 reactions 1 assignee View on GitHub

@Alexis-Tiscareno is already working on this.

Since May 24, 2025.

bug
Dominant language
JavaScript
Stars
186
Forks
238
Avg merge
2h 49m
Merged PRs (30d)
1

Description

## 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.
loopback-connector-mongodb@7.0.0-alpha.2 /Users/alexito/Documents/LoopBack/loopback-connector-mongodb
├── loopback-connector@5.0.1
```
## Related Issues

_See [Reporting Issues](http://loopback.io/doc/en/contrib/Reporting-issues.html) for more tips on writing good issues_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.