Bhaumin
Understanding deno test Behavior with Interdependent Modules
it can be automated if the deno project is fully in workspace manner and by using deno_graph for this and then all test cases can be executed automatically in the required dag manner?
After implementing such a feature only i am asking, is it possible right?
25 replies
Understanding deno test Behavior with Interdependent Modules
any work in progress or issue/pr to track work if no then should i create issue?
i think cli is already using deno_graph and that features can be extended to deno test also...so
what you suggest?
25 replies
does deno_graph natively resolve the path of workspaces?
is this correct i asked in ai in deno docs website?
To configure a Deno workspace that can be resolved using the Deno graph, you need to set up a
deno.json
file at the root of your workspace. This file should define the workspace members and any necessary imports.
Here’s an example of how your deno.json
file might look:
In this configuration, the workspace
key specifies the directories that contain your workspace members, such as add
and subtract
. The imports
key allows you to define any external dependencies that your workspace will use.
Each workspace member can also have its own deno.json
file. For example, in the add
directory, you might have:
This setup allows you to reference the workspace members using bare specifiers in your code. For instance, in your main.ts
file, you can import the functions from the workspace members like this:
To visualize the dependencies and how they connect within your workspace, you can use the Deno graph command:
This command will generate a graph of your module dependencies, showing how everything is interconnected within your workspace. It provides a clear view of the relationships between your modules and their imports.6 replies