Skip to content

Commit

Permalink
chore: remove jest mongo and ezs/lodex mention
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Jan 25, 2024
1 parent cc6ebba commit 1c67d1c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 213 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
*

# White list only the required files
!package-lock.json
!yarn.lock
!package.json
!packages/
!jest.config.js
!jest-mongodb-config.js
!lerna.json
!babel.config.js
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.2
17 changes: 0 additions & 17 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,20 +227,3 @@ Add the new package in the list of the [root's README](./README.md).
### Add the package in the gh-pages

Add the new package in the [documentation side bar](./docs/_sidebar.md).

## TroubleShooting

If your tests don't pass in `packages/lodex/test/mongoQuery.spec.js`, you may be
behind a proxy.

It uses [mongo-unit](https://www.npmjs.com/package/mongo-unit) which in turn
uses [mongodb-prebuilt](https://www.npmjs.com/package/mongodb-prebuilt), which
uses [mongodb-download](https://www.npmjs.com/package/mongodb-download), which
tries to download, at first run (that is, the first time you launch the tests,
not at install time), a prebuilt version of MongoDB.

It puts it into `~/.mongodb-prebuilt/mongodb-download/`. But if you are behind a
proxy, the download won't work.

The only solution we found is to launch the test on a network without proxy *at
least once*. Once the file is downloaded, tests will work.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ WORKDIR /app

COPY lerna.json ./
COPY babel.config.js ./
COPY jest-mongodb-config.js ./
COPY jest.config.js ./

# Following lines allow to generate & install node_modules
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ The standard package is [@ezs/core](./packages/core#readme), which contains its
- [@ezs/conditor](./packages/conditor#readme) [![npm version](https://img.shields.io/npm/v/@ezs/conditor)](https://npm.im/@ezs/conditor)
- [@ezs/istex](./packages/istex#readme) [![npm version](https://img.shields.io/npm/v/@ezs/istex)](https://npm.im/@ezs/istex)
- [@ezs/libpostal](./packages/libpostal#readme) [![npm version](https://img.shields.io/npm/v/@ezs/libpostal)](https://npm.im/@ezs/libpostal)
- [@ezs/lodex](./packages/lodex#readme) [![npm version](https://img.shields.io/npm/v/@ezs/lodex)](https://npm.im/@ezs/lodex)
- [@ezs/loterre](./packages/loterre#readme) [![npm version](https://img.shields.io/npm/v/@ezs/loterre)](https://npm.im/@ezs/loterre)
- [@ezs/sparql](./packages/sparql#readme) [![npm version](https://img.shields.io/npm/v/@ezs/sparql)](https://npm.im/@ezs/sparql)
- [@ezs/spawn](./packages/spawn#readme) [![npm version](https://img.shields.io/npm/v/@ezs/spawn)](https://npm.im/@ezs/spawn)
Expand Down
12 changes: 0 additions & 12 deletions jest-mongodb-config.js

This file was deleted.

1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const options = {
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/', '/test/', '/lib/', '/lodex/src/reducers/'],
coverageReporters: ['lcov', 'text-summary'],
preset: '@shelf/jest-mongodb',
transformIgnorePatterns: [
'/node_modules/(?!quick-lru)'
],
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@babel/plugin-transform-modules-commonjs": "7.13.8",
"@babel/preset-env": "7.13.15",
"@babel/register": "7.13.14",
"@shelf/jest-mongodb": "1.2.4",
"@types/jest": "26.0.22",
"@types/ramda": "0.27.40",
"array-parallel": "0.1.3",
Expand Down
Loading

0 comments on commit 1c67d1c

Please sign in to comment.