Skip to content

Commit b88316c

Browse files
committed
Use server version 100.0.0 when testing to avoid triggering the end-of-life modal everywhere
1 parent aeb5ed8 commit b88316c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

configs/testing-library-compass/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export class MockDataService
181181
},
182182
build: {
183183
isEnterprise: false,
184-
version: '0.0.0',
184+
// Picking a large version to avoid the end-of-life confirmation modal
185+
version: '100.0.0',
185186
},
186187
host: {},
187188
genuineMongoDB: {

packages/compass-app-stores/src/stores/instance-store.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('InstanceStore [Store]', function () {
125125
const instance = instancesManager.getMongoDBInstanceForConnection(
126126
connectedConnectionInfoId
127127
);
128-
expect(instance).to.have.nested.property('build.version', '0.0.0');
128+
expect(instance).to.have.nested.property('build.version', '100.0.0');
129129
globalAppRegistry.emit('refresh-data');
130130
await waitForInstanceRefresh(instance);
131131
});

0 commit comments

Comments
 (0)