Skip to content

Commit

Permalink
Merge pull request #13764 from hasezoey/mms9
Browse files Browse the repository at this point in the history
upgrade to mongodb-memory-server 9.0.0
  • Loading branch information
vkarpov15 authored May 16, 2024
2 parents 07fcf0a + de05204 commit 7b0d28b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
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

0 comments on commit 7b0d28b

Please sign in to comment.