deno test
doesn't use the specified compilerOptions.lib
#14565
Labels
question
a question about the use of Deno
Tiny example repo:
https://github.com/RobertAKARobin/deno-test-err
It consists of:
Steps to reproduce
deno bundle index.ts
. Observe it compiles and completes successfully.deno test index.test.ts
Expected result
deno test
completes successfully, just likedeno bundle
.Actual result
deno test
fails with a fatal error:deno test
doesn't "know" aboutdocument
, which indicates it is not respecting that the configuration file'scompilerOptions.lib
includes"dom"
.If I add the
--compat
option...:...then the error changes:
How can I write unit tests that include the DOM API?
The text was updated successfully, but these errors were encountered: