Skip to content

Commit f0b9ae0

Browse files
authored
Merge pull request #85210 from callstack-internal/remove-cache-eviction-code
Bump Onyx to 3.0.52
2 parents 96200e6 + 55e9a41 commit f0b9ae0

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"react-native-localize": "^3.5.4",
182182
"react-native-nitro-modules": "0.29.4",
183183
"react-native-nitro-sqlite": "9.2.0",
184-
"react-native-onyx": "3.0.51",
184+
"react-native-onyx": "3.0.52",
185185
"react-native-pager-view": "8.0.0",
186186
"react-native-pdf": "7.0.2",
187187
"react-native-permissions": "^5.4.0",

tests/unit/OnyxDerivedTest.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ const onyxDerivedTestSetup = () => {
2121
};
2222

2323
describe('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

Comments
 (0)