From b41b13a99dd2fb547b2d5dc629d2f8aebbbac6ab Mon Sep 17 00:00:00 2001 From: Jack Kavanagh Date: Wed, 16 Mar 2022 13:05:12 +0100 Subject: [PATCH] inso: shim more of the window (#4596) --- .../send-request/window-shim/index.js | 2 ++ packages/insomnia-smoke-test/README.md | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/insomnia-app/send-request/window-shim/index.js b/packages/insomnia-app/send-request/window-shim/index.js index c58efb7094..605c813f55 100644 --- a/packages/insomnia-app/send-request/window-shim/index.js +++ b/packages/insomnia-app/send-request/window-shim/index.js @@ -4,4 +4,6 @@ module.exports = { setItem: () => {}, }, performance:{ now:() => 0 }, + requestAnimationFrame: () => {}, + cancelAnimationFrame: () => {}, }; diff --git a/packages/insomnia-smoke-test/README.md b/packages/insomnia-smoke-test/README.md index 1c9a83ad4b..726571d081 100644 --- a/packages/insomnia-smoke-test/README.md +++ b/packages/insomnia-smoke-test/README.md @@ -106,6 +106,23 @@ npm run cli # Run CLI tests This will allow you to write and monitor the server separately from each test, speeding up the development cycle. +### Debug Inso CLI api test in watch mode + +This is helpful for debugging failing api tests and changing the send-request abstraction + +From project root, in seperate terminals: + +```sh +# start smoke test api +npx lerna --scope insomnia-smoke-test exec 'npm run serve' +# watch send-request +npx lerna --scope insomnia-app exec 'npm run build:sr -- --watch' +# watch inso +npx lerna --scope insomnia-inso exec 'npm run start' +# run api test +$PWD/packages/insomnia-inso/bin/inso run test "Echo Test Suite" --src $PWD/packages/insomnia-smoke-test/fixtures/inso-nedb --env Dev --verbose +``` + ## General guidelines ### Data