1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
denoland-deno/tests/specs/test/document/document_test.out
Bartek Iwańczuk ee904ec06c
fix: add hint for missing document global in terminal error (#26218)
This came up on Discord as a question so I thought it's worth adding a
hint for this as it might be a common pitfall.

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-10-15 21:51:39 +00:00

22 lines
595 B
Text

running 1 test from ./document_test.js
document query selector ... FAILED [WILDCARD]
ERRORS
document query selector => ./document_test.js:1:6
error: ReferenceError: document is not defined
document.querySelector("div");
^
at [WILDCARD]document_test.js:2:3
info: document global is not available in Deno.
hint: Use a library like happy-dom, deno_dom, linkedom or JSDom
and setup the document global according to the library documentation.
FAILURES
document query selector => ./document_test.js:1:6
FAILED | 0 passed | 1 failed ([WILDCARD])
error: Test failed