octo3.
How to get `require.main.filename` like Node as Deno
I am making a module to be published on deno.land/x.
I want the user to put a file describing the configuration for the module on the same level as the entrypoint file.
I could not figure out how to get the entrypoint filename from the module side.
In Node.js,
require.main.filename
seems to solve this.
How would this be appropriate to write in Deno?11 replies
Is the Fresh compornents test function enabled?
Attempting to write a test for Fresh compornents.
I was able to verify the rendered content.
I am not able to validate the event.
I would appreciate any help if anyone has a solution.
Here is the source code.
Here is the execution command.
Here is the execution result.(Excerpt)
4 replies