chore: updated github workflow of tests

This commit is contained in:
Anoop M D 2024-08-21 12:00:06 +05:30
parent 7b3a5486db
commit b8138e20a0
3 changed files with 37 additions and 10 deletions

View File

@ -25,6 +25,7 @@ jobs:
run: |
npm run build --workspace=packages/bruno-common
npm run build --workspace=packages/bruno-query
npm run sandbox:bundle-libraries --workspace=packages/bruno-js
# tests
- name: Test Package bruno-js
@ -63,6 +64,7 @@ jobs:
run: |
npm run build --workspace=packages/bruno-query
npm run build --workspace=packages/bruno-common
npm run sandbox:bundle-libraries --workspace=packages/bruno-js
- name: Run tests
run: |

View File

@ -3,19 +3,22 @@
"name": "bruno-testbench",
"type": "collection",
"proxy": {
"enabled": false,
"protocol": "http",
"hostname": "{{proxyHostname}}",
"port": 4000,
"bypassProxy": "",
"enabled": "global",
"auth": {
"enabled": false,
"username": "anoop",
"password": "password"
"username": "",
"password": ""
},
"bypassProxy": ""
"port": null,
"hostname": "",
"protocol": "http"
},
"scripts": {
"moduleWhitelist": ["crypto", "buffer"],
"moduleWhitelist": [
"crypto",
"buffer"
],
"filesystemAccess": {
"allow": true
}
@ -27,5 +30,9 @@
"presets": {
"requestType": "http",
"requestUrl": "http://localhost:6000"
}
}
},
"ignore": [
"node_modules",
".git"
]
}

View File

@ -38,4 +38,22 @@ tests {
"sum": 3
});
});
test("should return json", function() {
const data = res.getBody();
expect(res.getBody()).to.eql({
"a": 1,
"b": 2,
"sum": 3
});
});
test("should return json", function() {
const data = res.getBody();
expect(res.getBody()).to.eql({
"a": 1,
"b": 2,
"sum": 3
});
});
}