deno test --require
or --import
(setup file)
#26988
Labels
suggestion
suggestions for new features (yet to be agreed)
testing
related to deno test and coverage
I can't really figure how to do some browser mocking in deno.
I'm using the node command like this, which works:
node --experimental-strip-types --test --import ./test/mock-browser.ts
(link to code)But with deno i get:
deno test --no-check
:I have in my deno.json
The mock-browser.ts being:
For node compat, I believe I need a way to do a similar
--import
in deno test, or another way to give a setup file, which I believe vitest calls itThe text was updated successfully, but these errors were encountered: