summaryrefslogtreecommitdiff
path: root/tests/specs/test/document/document_test.out
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-10-15 22:51:39 +0100
committerGitHub <noreply@github.com>2024-10-15 21:51:39 +0000
commitee904ec06c1a3b3d4e4a87898e777e2f9b587b07 (patch)
tree87dd34f481c9d35ef9c696599889294269ffff29 /tests/specs/test/document/document_test.out
parent3065dadea3792539f050346c534afc0a7821c2b6 (diff)
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>
Diffstat (limited to 'tests/specs/test/document/document_test.out')
-rw-r--r--tests/specs/test/document/document_test.out22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/specs/test/document/document_test.out b/tests/specs/test/document/document_test.out
new file mode 100644
index 000000000..342cee0e4
--- /dev/null
+++ b/tests/specs/test/document/document_test.out
@@ -0,0 +1,22 @@
+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