mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
inso: shim more of the window (#4596)
This commit is contained in:
@@ -4,4 +4,6 @@ module.exports = {
|
||||
setItem: () => {},
|
||||
},
|
||||
performance:{ now:() => 0 },
|
||||
requestAnimationFrame: () => {},
|
||||
cancelAnimationFrame: () => {},
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user