Using scopes in deno.json to mock modules for tests
Hello, I have something like this in my deno.json
completion.test.ts imports
completion.ts
which imports #css
.
I expect that when I run deno test -A
, my mock module would be loaded, not the real one
instead the real one is loaded. Please advise how I can mock modules for testing.1 Reply
I solved this by passing context param into my functions - more testable that way