Replies: 1 comment 2 replies
-
@ir-map no you can't do that, because |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to call a Napi.rs function from within a Rust test. https://napi.rs/docs/compat-mode/concepts/env describes
contextless_function
and other macros that can inject a env or context but I don't see a way to do this from within a test function e.g. using#[tokio::test]
. https://docs.rs/napi/latest/napi/struct.Env.html#method.from_raw exists but I don't know what pointer to pass in to create an Env. I'm trying to create aJsObject
to pass into a napi function from within a#[tokio::test]
.Beta Was this translation helpful? Give feedback.
All reactions