You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write some tests for the Rust backend. In those tests I'm trying to create instances of a mock api so I can tests the bindings to JS are properly setup:
However, whenever I try to run my tests I get the following error:
error: symbol `_EMBED_INFO_PLIST` is already defined
--> src/nebula/nebula.rs:352:20
|
352 | .build(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::embed_info_plist_bytes` which comes from the expansion of the macro `tauri::generate_context` (in Nightly builds, run with -Z macro-backtrace for more info)
There is not a lot of documentation on how to achieve this but I can assume that creating multiple instances of a tauri app is not supported?
Moved this to the docs repo because i think the whole testing guide needs improvements, however this also needs to be fixed in the rust code docs so it's really an issue in both repos.
FabianLars
changed the title
[bug] cannot create more than one mock app?
docs improvements for test module
Apr 30, 2024
Describe the bug
I'm trying to write some tests for the Rust backend. In those tests I'm trying to create instances of a mock api so I can tests the bindings to JS are properly setup:
However, whenever I try to run my tests I get the following error:
There is not a lot of documentation on how to achieve this but I can assume that creating multiple instances of a tauri app is not supported?
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: