Replies: 1 comment 1 reply
-
@ir-map no you can't do that, because |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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