11use std:: { cell:: RefCell , rc:: Rc , sync:: Arc } ;
22
33use bon:: builder;
4- use macros:: tracing_to_console_log ;
4+ use macros:: leptos_test_setup ;
55use typesafe_idb:: { ReadOnly , ReadWrite } ;
66use url:: Url ;
7- use wasm_bindgen_test:: wasm_bindgen_test;
87
98use crate :: {
109 backend_api_trait:: BackendApi ,
@@ -78,8 +77,7 @@ async fn num_times_subscriber_called<Txn1Markers, Txn1Mode, Txn2Markers, Txn2Mod
7877 }
7978}
8079
81- #[ wasm_bindgen_test]
82- #[ tracing_to_console_log]
80+ #[ leptos_test_setup]
8381pub async fn index_get_no_optimisim_put_overlapping ( ) {
8482 num_times_subscriber_called ( )
8583 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
@@ -105,8 +103,7 @@ pub async fn index_get_no_optimisim_put_overlapping() {
105103 . await ;
106104}
107105
108- #[ wasm_bindgen_test]
109- #[ tracing_to_console_log]
106+ #[ leptos_test_setup]
110107pub async fn index_get_no_optimisim_put_non_overlapping ( ) {
111108 num_times_subscriber_called ( )
112109 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
@@ -132,8 +129,7 @@ pub async fn index_get_no_optimisim_put_non_overlapping() {
132129 . await ;
133130}
134131
135- #[ wasm_bindgen_test]
136- #[ tracing_to_console_log]
132+ #[ leptos_test_setup]
137133pub async fn get_no_optimisim_put_overlapping ( ) {
138134 let some_issue_id = 4 . into ( ) ;
139135 num_times_subscriber_called ( )
@@ -161,8 +157,7 @@ pub async fn get_no_optimisim_put_overlapping() {
161157 . await ;
162158}
163159
164- #[ wasm_bindgen_test]
165- #[ tracing_to_console_log]
160+ #[ leptos_test_setup]
166161pub async fn get_no_optimisim_put_non_overlapping ( ) {
167162 let some_issue_id = 4 . into ( ) ;
168163 num_times_subscriber_called ( )
@@ -211,8 +206,7 @@ pub async fn get_no_optimisim_put_non_overlapping() {
211206 . await ;
212207}
213208
214- #[ wasm_bindgen_test]
215- #[ tracing_to_console_log]
209+ #[ leptos_test_setup]
216210pub async fn get_all_no_optimisim_put_overlapping ( ) {
217211 num_times_subscriber_called ( )
218212 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
@@ -232,8 +226,7 @@ pub async fn get_all_no_optimisim_put_overlapping() {
232226 . await ;
233227}
234228
235- #[ wasm_bindgen_test]
236- #[ tracing_to_console_log]
229+ #[ leptos_test_setup]
237230pub async fn get_all_no_optimisim_put_non_overlapping ( ) {
238231 num_times_subscriber_called ( )
239232 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
@@ -257,8 +250,7 @@ pub async fn get_all_no_optimisim_put_non_overlapping() {
257250 . await ;
258251}
259252
260- #[ wasm_bindgen_test]
261- #[ tracing_to_console_log]
253+ #[ leptos_test_setup]
262254pub async fn get_all_no_optimisim_create_overlapping ( ) {
263255 num_times_subscriber_called ( )
264256 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
@@ -276,8 +268,7 @@ pub async fn get_all_no_optimisim_create_overlapping() {
276268 . await ;
277269}
278270
279- #[ wasm_bindgen_test]
280- #[ tracing_to_console_log]
271+ #[ leptos_test_setup]
281272pub async fn get_all_no_optimisim_create_non_overlapping ( ) {
282273 num_times_subscriber_called ( )
283274 . make_txn_1 ( |txn| txn. with_store :: < Issue > ( ) . build ( ) )
0 commit comments