You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>npx jest
FAIL src/reviewer.test.ts (5.44s)
× renders test site (23ms)
● renders test site
TypeError: Cannot read property 'href' of undefined
7 |
> 8 | const domJSON = require('domjson');
| ^
at node_modules/domjson/dist/domJSON.js:19:28
at node_modules/domjson/dist/domJSON.js:7:23
at Object.<anonymous> (node_modules/domjson/dist/domJSON.js:15:3)
at Object.<anonymous> (src/reviewer.test.ts:8:21)
If I import require('jsdom-global')() as suggested on #26 (Usage w/ Jsdom: TypeError: Cannot read property 'href' of undefined), jest breaks on my tear down with this:
FAIL src/reviewer.test.ts
● Test suite failed to run
TypeError: Illegal invocation
at removeEventListener (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:131:15)
The text was updated successfully, but these errors were encountered:
I got this error:
If I import
require('jsdom-global')()
as suggested on #26 (Usage w/ Jsdom: TypeError: Cannot read property 'href' of undefined), jest breaks on my tear down with this:The text was updated successfully, but these errors were encountered: