inso: shim more of the window (#4596)

This commit is contained in:
Jack Kavanagh
2022-03-16 13:05:12 +01:00
committed by GitHub
parent 4c657d4e5b
commit b41b13a99d
2 changed files with 19 additions and 0 deletions

View File

@@ -4,4 +4,6 @@ module.exports = {
setItem: () => {},
},
performance:{ now:() => 0 },
requestAnimationFrame: () => {},
cancelAnimationFrame: () => {},
};

View File

@@ -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