texasranger
texasranger
DDeno
Created by texasranger on 5/5/2024 in #help
jsxImportSourceTypes not working for React
I've tried doing this:
"jsx": "react-jsx",
"jsxImportSource": "react",
"jsxImportSourceTypes": "@types/react"
"jsx": "react-jsx",
"jsxImportSource": "react",
"jsxImportSourceTypes": "@types/react"
(with proper import mapping) but Deno nor VS Code recognize React's types. I've outlined more details here in an issue: https://github.com/denoland/deno/issues/23702
3 replies
DDeno
Created by texasranger on 2/25/2023 in #help
AssertionError: Test case is leaking async ops
- 2 async operations to op_read were started before this test, but were completed during the test. Async operations should not complete in a test if they were not started in that test. | | - 1 async operation to op_spawn_wait was started before this test, but was completed during the test. Async operations should not complete in a test if they were not started in that test. I have sanitizeOps: false, sanitizeResources: false and yet I get this error? I'm 99% sure this is from npm:prisma aka I don't have control over it. I just need to figure out how to get this error to go away or my tests wont pass :/
21 replies
DDeno
Created by texasranger on 2/25/2023 in #help
Why does `deno test` add an older version of the `std` library to my deno.lock?
My testing files do not reference std/0.165 and my import-map.json is pinned to std/0.177. When I use deno run everything works fine. When I use deno test for some reason std/0.165 is added to my deno.lock file and then I get errors about core.runMicrotasks is not a function. How do I keep deno test from adding an older version of std to the deno.lock file?
9 replies
DDeno
Created by texasranger on 1/10/2023 in #help
Before generating coverage report, run `deno test --coverage` to ensure consistent state.
Why would this happen, if I did run deno test --coverage before running deno coverage...?
1 replies
DDeno
Created by texasranger on 1/9/2023 in #help
error Missing transpiled source code for
When I try to create a coverage report for my project, I get an error saying one of my files is missing transpiled code? What does that mean? You can run the coverage task here to reproduce the error: https://github.com/chrisabrams/nova
1 replies
DDeno
Created by texasranger on 12/22/2022 in #help
Where to contact for name squatting?
The website says to "contact us" if you believe name squatting is occurring, but it does not indicate where to "contact us."
3 replies