We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8a92b commit 5afe721Copy full SHA for 5afe721
packages/faucet-client/src/faucetclient.spec.ts
@@ -1,9 +1,10 @@
1
import { FaucetClient } from "./faucetclient";
2
3
function pendingWithoutFaucet(): void {
4
- if (!process.env.FAUCET_ENABLED) {
5
- pending("Set FAUCET_ENABLED to enable tests that need a faucet");
+ if (typeof process !== "undefined" && process?.env.FAUCET_ENABLED) {
+ return;
6
}
7
+ pending("Set FAUCET_ENABLED to enable tests that need a faucet");
8
9
10
describe("FaucetClient", () => {
0 commit comments