Industrial
VSCode Test Debugging
This doesn't work unless I add:
When I run without, I see that a process starts but it does nothing. How do I run all tests with a debugger? I just want to set a breakpoint and press run. I don't want to have to edit the config to test 1 specific file.
3 replies
Error running Apollo example (on latest version)
Hi.
When I run this example with the latest version of apollo from npm I get errors:
https://deno.land/manual@v1.36.4/node/how_to_with_npm/apollo
I tried removing the version to get the latest version and it pulled 4.9.3
which gave this error:
3 replies
Error running program that uses `fp-ts` from npm (`Is a directory (os error 21)`)
https://github.com/Industrial/test-fp-ls/blob/main/mod.ts
When I run
deno run -A mod.ts
I get:
Is my import_map.json
wrong? https://github.com/Industrial/test-fp-ls/blob/main/import_map.json4 replies
File Permissions on Deno.FileInfo
Hello. As a programming exercise I'm trying to convert a Decimal number into Octal and that Octal representation into a Unix File Permission representation (drwx-).
* I have a directory with the number
16877
-> 40755
* I have a file with the number 33188
-> 100644
Questions:
* Why does the first Octal number have 5 digits and the second one 6?
* I understand the meaning of the last 3 digits, but I don't understand the meaning of the 40
and the 100
. Should I interpret the number from right to left?
According to ChatGPT:
The leftmost digit represents the file type. It can have various values depending on the file type, such as:
0: Regular file
1: FIFO (named pipe)
2: Directory
3: Symbolic link
4: Socket
5: Block device
6: Character device
If that's true why is my directory giving me a mode of 4
i.e. Socket and not 2
(Directory)?5 replies
Simple test, lots of type errors
Hi!
I made a library for Deno (https://github.com/Industrial/fresh-emotion) and am now trying to add tests.
When I run this test: https://github.com/Industrial/fresh-emotion/blob/main/mod.test.ts
I get this output:
And many more errors like it. How do I solve this? Is this due to Fresh / Preact ?
1 replies
How do I patch a std api?
Hello.
This person posted in this command that they "patched" the
vm.isContext
function to return false in order to get the node:jsdom
library to work: https://github.com/denoland/fresh/issues/427#issuecomment-1251918545
I am wondering how they did that.
I tried this:
But this throws the error:
7 replies