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

BC-6654 - Update mongo to v5 #4916

Merged
merged 12 commits into from
Apr 17, 2024
2 changes: 1 addition & 1 deletion .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches: [ main ]

env:
MONGODB_VERSION: 4.4
MONGODB_VERSION: 5.0
NODE_VERSION: '18'
jobs:
migration:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
contents: read

env:
MONGODB_VERSION: 4.4
MONGODB_VERSION: 5.0
NODE_VERSION: '18'
jobs:
feathers_tests_cov:
Expand Down
8 changes: 6 additions & 2 deletions apps/server/test/globalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { MongoMemoryServer } from 'mongodb-memory-server-global-4.4';
import { MongoMemoryServer } from 'mongodb-memory-server-global';

export = async function globalSetup() {
const instance = await MongoMemoryServer.create();
const instance = await MongoMemoryServer.create({
binary: {
version: '5.0.26',
},
});
const uri = instance.getUri();
global.__MONGOINSTANCE = instance;
// eslint-disable-next-line no-process-env
Expand Down
2 changes: 1 addition & 1 deletion apps/server/test/globalTeardown.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MongoMemoryServer } from 'mongodb-memory-server-global-4.4';
import { MongoMemoryServer } from 'mongodb-memory-server-global';

export = async function globalTeardown() {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
Expand Down
Loading
Loading