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

View File

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

View File

@ -38,4 +38,22 @@ tests {
"sum": 3 "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
});
});
} }