@pylonsync/sync 0.3.331 → 0.3.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -72,7 +72,8 @@ afterEach(() => {
|
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
function offlineFetch(): typeof fetch {
|
|
75
|
-
return (() =>
|
|
75
|
+
return (() =>
|
|
76
|
+
Promise.reject(new TypeError("network down"))) as unknown as typeof fetch;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
function makeEngine(persistence: ReplicaPersistence): SyncEngine {
|
|
@@ -49,7 +49,7 @@ describe("initial-sync loading signal", () => {
|
|
|
49
49
|
// The crux: mid-pull the signal was still false (a UI would show a
|
|
50
50
|
// skeleton, not its empty state). If `loading` reverts to gating on
|
|
51
51
|
// `isHydrated()`, this captured value flips to true and the test fails.
|
|
52
|
-
expect(settledMidPull).toBe(false);
|
|
52
|
+
expect(settledMidPull as boolean | null).toBe(false);
|
|
53
53
|
|
|
54
54
|
// Once the pull confirms (here: an empty result), it settles — so an empty
|
|
55
55
|
// list now reads as a real "no rows", not "still fetching".
|