Skip to content

Commit e2ca7cf

Browse files
fix: check if storage is 'undefined' (#99)
1 parent 128581e commit e2ca7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function getStorageByPlatform(args: INsCapabilities) {
258258

259259
function getStorage(args: INsCapabilities) {
260260
let storage = args.storage;
261-
if (!storage) {
261+
if (!storage || storage === 'undefined' || storage === null || storage === 'null') {
262262
storage = createStorageFolder(resolve(args.projectDir, args.testFolder), "resources");
263263
storage = createStorageFolder(storage, "images");
264264
}

0 commit comments

Comments
 (0)