mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
ee904ec06c
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>
22 lines
595 B
Text
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
|