Skip to content

Commit 3416d27

Browse files
authored
fix: check for process (#63)
1 parent ac16d2a commit 3416d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type {
2525
} from "./types";
2626

2727
/* istanbul ignore next */
28-
if (!process.env.STL_SKIP_AUTO_CLEANUP) {
28+
if (typeof process === 'undefined' || !process.env.STL_SKIP_AUTO_CLEANUP) {
2929
//@ts-ignore
3030
if (typeof afterEach === "function") { afterEach(cleanup); }
3131
}

0 commit comments

Comments
 (0)