Bhaumin
Bhaumin
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