We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac16d2a commit 3416d27Copy full SHA for 3416d27
1 file changed
src/index.ts
@@ -25,7 +25,7 @@ import type {
25
} from "./types";
26
27
/* istanbul ignore next */
28
-if (!process.env.STL_SKIP_AUTO_CLEANUP) {
+if (typeof process === 'undefined' || !process.env.STL_SKIP_AUTO_CLEANUP) {
29
//@ts-ignore
30
if (typeof afterEach === "function") { afterEach(cleanup); }
31
}
0 commit comments