From d7fc24a1c1f985f71a67298062aa83677623aabe Mon Sep 17 00:00:00 2001 From: lohit Date: Wed, 21 Aug 2024 12:45:29 +0530 Subject: [PATCH] fix: tests (#2876) --- packages/bruno-electron/package.json | 2 +- packages/bruno-tests/collection/bruno.json | 27 ++++++++-------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/packages/bruno-electron/package.json b/packages/bruno-electron/package.json index d74d2f2be..9790d965b 100644 --- a/packages/bruno-electron/package.json +++ b/packages/bruno-electron/package.json @@ -16,7 +16,7 @@ "dist:rpm": "electron-builder --linux rpm --config electron-builder-config.js", "dist:snap": "electron-builder --linux snap --config electron-builder-config.js", "pack": "electron-builder --dir", - "test": "jest" + "test": "node --experimental-vm-modules $(npx --no-install which jest)" }, "jest": { "modulePaths": ["node_modules"] diff --git a/packages/bruno-tests/collection/bruno.json b/packages/bruno-tests/collection/bruno.json index dff6f124d..b6d437bbb 100644 --- a/packages/bruno-tests/collection/bruno.json +++ b/packages/bruno-tests/collection/bruno.json @@ -3,22 +3,19 @@ "name": "bruno-testbench", "type": "collection", "proxy": { - "bypassProxy": "", - "enabled": "global", + "enabled": false, + "protocol": "http", + "hostname": "{{proxyHostname}}", + "port": 4000, "auth": { "enabled": false, - "username": "", - "password": "" + "username": "anoop", + "password": "password" }, - "port": null, - "hostname": "", - "protocol": "http" + "bypassProxy": "" }, "scripts": { - "moduleWhitelist": [ - "crypto", - "buffer" - ], + "moduleWhitelist": ["crypto", "buffer"], "filesystemAccess": { "allow": true } @@ -30,9 +27,5 @@ "presets": { "requestType": "http", "requestUrl": "http://localhost:6000" - }, - "ignore": [ - "node_modules", - ".git" - ] -} \ No newline at end of file + } +}