mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-29 03:13:45 +01:00
chore: updated github workflow of tests
This commit is contained in:
parent
7b3a5486db
commit
b8138e20a0
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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: |
|
||||||
|
@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
@ -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
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user