Deno runs the whole script instead of the method
I have following test:
When I run
deno test
it runs the whole webp.ts
script instead of just the validateInput()
method.3 Replies
Can you give more info? What is the content of the
webp.ts
that is not expected to run?It starts with:
I expected to run only the
validateInput
method.That's not how ES modules work. All file is evaluated when it is imported