Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to mongodb-memory-server 9.0.0 #13764

Merged
merged 10 commits into from
May 16, 2024
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ jobs:
matrix:
node: [14, 16, 18, 20]
os: [ubuntu-20.04, ubuntu-22.04]
mongodb: [4.4.18, 5.0.14, 6.0.4]
mongodb: [4.4.28, 5.0.25, 6.0.14, 7.0.7]
include:
- os: ubuntu-20.04 # customize on which matrix the coverage will be collected on
mongodb: 5.0.14
mongodb: 5.0.25
node: 16
coverage: true
exclude:
- os: ubuntu-22.04 # exclude because there are no 4.x mongodb builds for 2204
mongodb: 4.4.18
mongodb: 4.4.28
- os: ubuntu-22.04 # exclude because there are no 5.x mongodb builds for 2204
mongodb: 5.0.14
mongodb: 5.0.25
name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongodb }} OS ${{ matrix.os }}
env:
MONGOMS_VERSION: ${{ matrix.mongodb }}
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
runs-on: ubuntu-20.04
name: Deno tests
env:
MONGOMS_VERSION: 6.0.4
MONGOMS_VERSION: 6.0.14
MONGOMS_PREFER_GLOBAL_PATH: 1
FORCE_COLOR: true
steps:
Expand All @@ -108,7 +108,7 @@ jobs:
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.34.x
deno-version: v1.37.x
- run: deno --version
- run: npm install
- name: Run Deno tests
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"mkdirp": "^3.0.1",
"mocha": "10.2.0",
"moment": "2.x",
"mongodb-memory-server": "8.15.1",
"mongodb-memory-server": "9.2.0",
"ncp": "^2.0.0",
"nyc": "15.1.0",
"pug": "3.0.2",
Expand Down
3 changes: 3 additions & 0 deletions test/schema.select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ describe('schema select option', function() {
afterEach(() => require('./util').stopRemainingOps(db));

it('excluding paths through schematype', async function() {
// data clearing is required for this test, because in deno some other test leaks a "_id: immutable" index
await db.dropDatabase();

const schema = new Schema({
thin: Boolean,
name: { type: String, select: false },
Expand Down