From 02c111b7e6a54528186e37f5408d1a41462e5526 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Tue, 17 Dec 2024 07:38:23 -0800 Subject: [PATCH] feat: storage-test-utils report missing data --- packages/internal/src/storage-test-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/internal/src/storage-test-utils.js b/packages/internal/src/storage-test-utils.js index 6babcb12223..15774a7ec01 100644 --- a/packages/internal/src/storage-test-utils.js +++ b/packages/internal/src/storage-test-utils.js @@ -209,7 +209,9 @@ export const makeFakeStorageKit = (rootPath, rootOptions) => { */ const getValues = path => { assert(resolvedOptions.sequence); - const wrapper = JSON.parse(data.get(path)); + const nodeData = data.get(path); + assert(nodeData, `no data at path ${path}`); + const wrapper = JSON.parse(nodeData); return wrapper.values; };