Bhaumin
Bhaumin
DDeno
Created by Bhaumin on 11/16/2024 in #help
Understanding deno test Behavior with Interdependent Modules
I'm seeking clarification on how Deno's test runner (deno test) manages interdependent modules. Consider the following module dependencies: Module A depends on Module B Module B depends on Module C If I execute deno test for Module A, will the test runner automatically execute the test cases for Modules B and C, given their dependency chain? If this automatic execution isn't currently supported, are there any plans to implement such a feature in future releases? If this functionality is not available and there are no existing plans to include it, would it be appropriate for me to submit a feature request or open an issue to discuss its potential implementation? Thank you for your insights.
25 replies
DDeno
Created by Bhaumin on 11/5/2024 in #help
How we can use deno docs theme in our project?
Hey anyone please can help us to use deno docs website lume theme in our project?
1 replies
DDeno
Created by Bhaumin on 10/26/2024 in #help
Can anyone help to get native vs code test working with deno?
Here is an issue also https://github.com/denoland/vscode_deno/issues/1138 We want to use test cases the same as shown in this video https://www.youtube.com/watch?v=pXuFniI0XUY or in this docs https://code.visualstudio.com/docs/editor/testing in VS code with deno. Thanks
1 replies
DDeno
Created by Bhaumin on 10/22/2024 in #help
`Deno run` command with permission flags not working inside container
I'm encountering an issue with running a Deno script inside a container (deno and chromium installed). When I execute the following command with specific permission flags: deno run --allow-read--allow-env --allow-write --allow-run="/usr/bin/chromium" --allow-net /test/index.ts it results in a timeout error. I've tried using -A (which grants all permissions) but it leads to the same error. However, when I run the command without any flags: deno run /test/index.ts Deno prompts me for permissions, and after granting them (by typing A), the script executes successfully. Why does the script work when granting permissions manually but fail when using the corresponding flags? What could be causing this discrepancy?
20 replies
DDeno
Created by Bhaumin on 10/12/2024 in #help
Any docs for profiling deno in vs code?
We need to check the performance of our code written in deno so for that we need to have support for profiling in vs code? any solution? here is one ref https://code.visualstudio.com/docs/nodejs/profiling
1 replies
DDeno
Created by Bhaumin on 10/10/2024 in #help
Getting bare specifier error | fresh and Deno workspace
When we use island of fresh with deno workspace we are getting bare specifier issue
specifier was a bare specifier, but was not remapped to anything by importMap.
specifier was a bare specifier, but was not remapped to anything by importMap.
https://github.com/denoland/fresh/issues/2615
1 replies
DDeno
Created by Bhaumin on 9/20/2024 in #help
Deno deployment clarity required?
Each deno deployment will have it's own unique copy of files? and is it counted in 1 GB limit space?
1 replies
DDeno
Created by Bhaumin on 9/20/2024 in #help
How to run mocha with deno
How can we run mocha test cases in deno? I have one project created with node and making it compatible with deno. all my test cases has been written in node mocha. so similar way if i try to run deno run test:mocha with the tasks inside deno.json
...
"test:deno": "mocha"
...
...
"test:deno": "mocha"
...
Getting below error
deno run test:deno

Task test:deno mocha
error: unexpected argument '--loader' found

tip: a similar argument exists: '--reload'
tip: to pass '--loader' as a value, use '-- --loader'

Usage: deno run --reload[=<CACHE_BLOCKLIST>...] [SCRIPT_ARG]...
deno run test:deno

Task test:deno mocha
error: unexpected argument '--loader' found

tip: a similar argument exists: '--reload'
tip: to pass '--loader' as a value, use '-- --loader'

Usage: deno run --reload[=<CACHE_BLOCKLIST>...] [SCRIPT_ARG]...
4 replies
DDeno
Created by Bhaumin on 9/19/2024 in #help
Import built-in Node module from deno.json imports
How can we import built-in Node modules by adding imorts to deno.json? We are getting below error when we do it
error: Relative import path "url" not prefixed with / or ./ or ../
If you want to use a built-in Node module, add a "node:" prefix (ex. "node:url").
error: Relative import path "url" not prefixed with / or ./ or ../
If you want to use a built-in Node module, add a "node:" prefix (ex. "node:url").
But we have added "url/*": "node:url" to our deno.json imports.
5 replies
DDeno
Created by Bhaumin on 9/7/2024 in #help
Handle routes for multiple domains using Fresh and Deno
How should we maintain multiple routes of multiple sub domains using fresh and deno? As per documentation we need to add all our routes inside routes folder. but what if we want to maintain routes per domain per feature? Is it possible?
9 replies
DDeno
Created by Bhaumin on 9/5/2024 in #help
Routes with Deno and Fresh
For web application using deno and fresh, what is recommended to serve backend api? Deno serve or fresh? What are the key trade-offs between Deno's serve and Fresh in terms of Performance & Scalability?
22 replies
DDeno
Created by Bhaumin on 7/30/2024 in #help
Help to get test coverage as shown in this vs code guideline?
Hey anyone can please help to get test coverage visualization as shown in this guide? https://code.visualstudio.com/docs/editor/testing
2 replies
DDeno
Created by Bhaumin on 7/29/2024 in #help
Please help to run puppeteer with deno?
23 replies