Skip to content

Commit 481eb30

Browse files
refactor:keploy sdk
1 parent 96feecf commit 481eb30

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

express-mongoose/package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

express-mongoose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"keywords": [],
1212
"license": "ISC",
1313
"dependencies": {
14-
"@keploy/typescript-sdk": "^2.0.1",
14+
"@keploy/typescript-sdk": "^2.0.2",
1515
"@lakhansamani/data-fetcher": "^1.0.2",
1616
"axios": "^1.6.0",
1717
"express": "^4.18.2",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const mongoose = require('mongoose');
22

3-
//mongoose.connect('mongodb://127.0.0.1:27017/Students') // when using natively
4-
mongoose.connect('mongodb://mongoDb:27017/Students') // When using with docker
3+
mongoose.connect('mongodb://127.0.0.1:27017/Students') // when using natively
4+
// mongoose.connect('mongodb://mongoDb:27017/Students') // When using with docker
55
.then(() => console.log("Connected to MongoDB"))
66
.catch(err=>console.error(`Error connecting to mongoDB ${err}`));

express-mongoose/test.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
TestRunStatus,
66
StopUserApplication,
77
StartUserApplication,
8-
} = require('./typescript-sdk/keployV2/keployCli');
8+
} = require('@keploy/typescript-sdk/dist/keployV2/keployCli');
99
// require('./src/app')
1010
const { expect } = require('@jest/globals');
1111
describe('Keploy Server Tests', () => {
@@ -22,6 +22,7 @@ describe('Keploy Server Tests', () => {
2222
console.log("starting user application");
2323
for (let testset of testSets) {
2424
let result = true;
25+
console.log(testset,"testsset")
2526
StartUserApplication("npm start")
2627
const testRunId = await RunTestSet(testset);
2728
let testRunStatus;

0 commit comments

Comments
 (0)