Replies: 1 comment 2 replies
|
@ir-map no you can't do that, because |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
@ir-map no you can't do that, because |
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_functionand 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 aJsObjectto pass into a napi function from within a#[tokio::test].All reactions