@@ -21,13 +21,16 @@ const onyxDerivedTestSetup = () => {
2121} ;
2222
2323describe ( 'OnyxDerived' , ( ) => {
24+ beforeAll ( async ( ) => {
25+ onyxDerivedTestSetup ( ) ;
26+ } ) ;
27+
2428 beforeEach ( async ( ) => {
2529 await Onyx . clear ( ) ;
2630 } ) ;
2731
2832 describe ( 'reportAttributes' , ( ) => {
2933 beforeAll ( async ( ) => {
30- onyxDerivedTestSetup ( ) ;
3134 await IntlStore . load ( CONST . LOCALES . EN ) ;
3235 await waitForBatchedUpdates ( ) ;
3336 } ) ;
@@ -402,7 +405,6 @@ describe('OnyxDerived', () => {
402405
403406 describe ( 'nonPersonalAndWorkspaceCardList' , ( ) => {
404407 beforeAll ( async ( ) => {
405- onyxDerivedTestSetup ( ) ;
406408 // Initialize dependency keys so Onyx.clear() in beforeEach triggers derived value recomputation
407409 await Onyx . set ( ONYXKEYS . CARD_LIST , { } ) ;
408410 await waitForBatchedUpdates ( ) ;
@@ -510,10 +512,6 @@ describe('OnyxDerived', () => {
510512 } ) ;
511513
512514 describe ( 'personalAndWorkspaceCardList' , ( ) => {
513- beforeAll ( async ( ) => {
514- onyxDerivedTestSetup ( ) ;
515- } ) ;
516-
517515 it ( 'merges cardList and workspaceCardFeeds when dependencies are set' , async ( ) => {
518516 // Non-personal cards (fundID !== '0') from cardList are kept, workspace cards are always included
519517 const nonPersonalCard1 = createRandomExpensifyCard ( 1 , { fundID : '123' } ) ;
@@ -592,7 +590,6 @@ describe('OnyxDerived', () => {
592590
593591 describe ( 'todos' , ( ) => {
594592 beforeAll ( async ( ) => {
595- onyxDerivedTestSetup ( ) ;
596593 // Initialize dependency keys so Onyx.clear() in beforeEach triggers derived value recomputation
597594 await Onyx . set ( ONYXKEYS . SESSION , { } ) ;
598595 await waitForBatchedUpdates ( ) ;
0 commit comments