Inso run test fails, ERROR: Cannot read property 'now' of undefined
See original GitHub issueDescribe the bug
Running tests with inso cli inso run test
results into an error.
> inso run test
✔ Select a document or unit test suite · <collection name>
✔ Select an environment · Staging - <env name>
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
ERROR Cannot read property 'now' of undefined
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32481:98)
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32491:30)
at __webpack_require__ (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:21:30)
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32460:20)
at __webpack_require__ (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:21:30)
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32169:59)
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32450:30)
at __webpack_require__ (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:21:30)
at Object.<anonymous> (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:32148:20)
at __webpack_require__ (/usr/lib/node_modules/insomnia-inso/node_modules/insomnia-send-request/dist/index.js:21:30)
ℹ To view tracing information, re-run inso with --verbose
To Reproduce Steps to reproduce the behavior:
- Go to command line
- execute inso cli
- select a design document containing tests
- select an environment
- execute the tests
- See the error described above
Expected behavior Inso CLI runs the tests as expected without throwing errors.
Desktop (please complete the following information):
- OS: Linux (Manjaro Linux 21.0.7)
- Installation Method: npm
- App Version v2.3.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Cannot read properties of undefined (reading 'transformFile ...
Now when I run npx react-native info it tells me the correct node version(16.13.1) and all my projects are running in the emulator...
Read more >Unit tests - Mattermost Developers
Review our guidelines for unit testing for your Mattermost webapp, including a guide on how to do ... TypeError: Cannot read property 'filter'...
Read more >an error was thrown in afterall cannot read property - You.com
The tests run and fail and then this error is thrown in jest 22. TypeError: Cannot read property 'addExpectationResult' of undefined at Env.fail...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Intermittent test suite failures, TypeError: Cannot read property ...
This error "TypeError: Object #<Sockit> has no method 'setPollTimeout'" is that we have a "bad" binary for sockit.node NodeJS binary module. If you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh that’s a good point^. Inso only works (currently) with Node 12. We’ve released single-executable binaries which you can access from GitHub Releases if you want to skip installing via NPM.
I had the same problem with all node v16 versions, but it worked with v14