bennyp
Using scopes in deno.json to mock modules for tests
Hello, I have something like this in my deno.json
completion.test.ts imports
completion.ts
which imports #css
.
I expect that when I run deno test -A
, my mock module would be loaded, not the real one
instead the real one is loaded. Please advise how I can mock modules for testing.2 replies
deno compile --include whatev.wasm
I'd like to include a wasm file as data, but when I try to
--include
it I get
I'm aware that the docs say to add wasm imports to the import map, but that's not what I'm getting at: I just want to include a tree sitter grammar as data so that web-tree-sitter
can load it up.2 replies
Bundling node-tree-sitter
Hello there! I'm working on a language server written in Deno TS. I'd like to bundle it with node-tree-sitter, and I'm using esbuild as the docs recommend., but node-tree-sitter doesn't bundle nicely.
https://github.com/bennypowers/design-tokens-language-server/issues/1#issuecomment-2776935304
If you have some ideas how I might work around this, I'd appreciate your input. Maybe with a dynamic import and
--include
?3 replies