Skip to content

Commit

Permalink
feat: storage-test-utils report missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Dec 17, 2024
1 parent adb17dd commit 02c111b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/internal/src/storage-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 02c111b

Please sign in to comment.