async function createVolFromSnapshot(snapshotJson) {
  const { vol } = memfs()
  await fromJsonSnapshot(snapshotJson, { fs: vol.promises, path: '/' })
  return vol
}
Creates a `Volume` from a "Compact JSON" snapshot.

@param {JsonUint8Array<SnapshotNode>} snapshotJson - "Compact JSON" snapshot
@returns {Promise<Volume>} New `Volume`