diff --git a/test/test.easystore.ts b/test/test.easystore.ts index 5a929b8..d244d22 100644 --- a/test/test.easystore.ts +++ b/test/test.easystore.ts @@ -19,7 +19,7 @@ let testDb: smartdata.SmartdataDb; let smartdataOptions: smartdata.IMongoDescriptor; let mongod: mongoPlugin.MongoMemoryServer; -tap.test('should create a testinstance as database', async () => { +tap.skip.test('should create a testinstance as database', async () => { mongod = await mongoPlugin.MongoMemoryServer.create(); console.log('created mongod instance'); console.log('mongod started'); @@ -31,6 +31,14 @@ tap.test('should create a testinstance as database', async () => { await testDb.init(); }); +tap.test('should connect to atlas', async (tools) => { + const databaseName = `test-smartdata-${smartunique.shortId()}`; + testDb = new smartdata.SmartdataDb({ + mongoDbUrl: testQenv.getEnvVarOnDemand('MONGO_URL'), + mongoDbName: databaseName, + }); +}); + let easyStore: smartdata.EasyStore<{ key1: string; key2: string;