Skip to content

Conversation

@alecgibson
Copy link
Contributor

This is broken in a fresh install:

npm install
npm test

This is because npm will fetch mongodb@5 (the latest it can), but running npm test without the _SHAREDB_MONGODB_DRIVER variable set means that the map reduce test still runs, when mongodb@5 doesn't support it.

This change tweaks the test to check if the function is defined, instead of relying on the environment variable.

This is broken in a fresh install:

```
npm install
npm test
```

This is because `npm` will fetch `mongodb@5` (the latest it can), but
running `npm test` without the `_SHAREDB_MONGODB_DRIVER` variable set
means that the map reduce test still runs, when `mongodb@5` doesn't
support it.

This change tweaks the test to check if the function is defined, instead
of relying on the environment variable.
@alecgibson
Copy link
Contributor Author

Back port of #145 into v2

@alecgibson alecgibson merged commit c5668ed into v2 Mar 1, 2023
@alecgibson alecgibson deleted the v2-fix-map-reduce-test branch March 1, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants