Skip to content

Commit fc7a4ef

Browse files
author
Joe Flateau
committed
refactor(eviction): update test descriptions for clarity on partition autoEvict behavior
1 parent 1724c20 commit fc7a4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apollo-forest-run/src/__tests__/eviction.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ it("should warn exactly once for the same warning", () => {
304304
// notably: "query TestB" is NOT logged
305305
});
306306

307-
it("auto-evicts all partitions when global autoEvict is true", () => {
307+
it("partitions without autoEvict specified inherit the default", () => {
308308
const cache = new ForestRun({
309309
maxOperationCount: 1,
310310
autoEvict: true,
@@ -505,7 +505,7 @@ it("gc() evicts all partitions regardless of per-partition autoEvict", () => {
505505
).toEqual({ bar: 1 });
506506
});
507507

508-
it("per-partition autoEvict: true overrides global autoEvict: false for default partition", () => {
508+
it("unconfigured operations fall to default partition and inherit global autoEvict", () => {
509509
// autoEvict: false only applies to __default__ partition and partitions
510510
// that don't specify their own autoEvict
511511
const cache = new ForestRun({

0 commit comments

Comments
 (0)