Skip to content

Commit b416f0d

Browse files
chore: Upgrade mongodb-memory-server to v10 (#888)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 1c2b3a1 commit b416f0d

File tree

9 files changed

+47
-67
lines changed

9 files changed

+47
-67
lines changed

.github/workflows/ci.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- 18.x
1717
- 20.x
1818
- 22.x
19+
mongodb:
20+
- 6.0.16
21+
- 7.0.12
1922
steps:
2023
- uses: actions/[email protected]
2124
with:
@@ -29,6 +32,8 @@ jobs:
2932
- run: node -v
3033
- run: pnpm install --frozen-lockfile
3134
- run: pnpm test:build
35+
env:
36+
MONGOMS_VERSION: ${{ matrix.mongodb }}
3237

3338
lint:
3439
runs-on: ubuntu-latest

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"jsdoc-parse": "6.2.1",
8080
"lint-staged": "15.2.7",
8181
"mongodb": "6.8.0",
82-
"mongodb-memory-server": "9.4.0",
82+
"mongodb-memory-server": "10.0.0",
8383
"mongoose": "7.5.2",
8484
"pinst": "3.0.0",
8585
"prettier": "3.3.2",

pnpm-lock.yaml

+35-60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/build.sh

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -euo pipefail
44

5-
pnpm build
6-
75
npm pack
86

97
mkdir ./build 2>/dev/null || true

tests/cjs/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function setup() {
2020

2121
const uri = mongoServer.getUri();
2222

23-
console.log(`Testing with ${uri}${DB}`);
23+
console.log(`Testing with MongoDB v${process.env.MONGOMS_VERSION} on ${uri}${DB}`);
2424

2525
connection = await MongoClient.connect(uri);
2626
const db = connection.db(DB);

tests/esm/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function setup() {
1818

1919
const uri = mongoServer.getUri();
2020

21-
console.log(`Testing with ${uri}${DB}`);
21+
console.log(`Testing with MongoDB v${process.env.MONGOMS_VERSION} on ${uri}${DB}`);
2222

2323
connection = await MongoClient.connect(uri);
2424
const db = connection.db(DB);

tests/run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -euo pipefail
44

5+
export MONGOMS_VERSION=${MONGOMS_VERSION:-6.0.16}
6+
57
./tests/build.sh
68

79
cd tests/esm/

tests/ts-nodenext/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function setup(): Promise<void> {
1919

2020
const uri = mongoServer.getUri();
2121

22-
console.log(`Testing with ${uri}${DB}`);
22+
console.log(`Testing with MongoDB v${process.env.MONGOMS_VERSION} on ${uri}${DB}`);
2323

2424
connection = await MongoClient.connect(uri);
2525
const db = connection.db(DB);

tests/ts/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function setup(): Promise<void> {
1919

2020
const uri = mongoServer.getUri();
2121

22-
console.log(`Testing with ${uri}${DB}`);
22+
console.log(`Testing with MongoDB v${process.env.MONGOMS_VERSION} on ${uri}${DB}`);
2323

2424
connection = await MongoClient.connect(uri);
2525
const db = connection.db(DB);

0 commit comments

Comments
 (0)