From 96cffb6952739a360d98dbca5e931dc6e61ef5d1 Mon Sep 17 00:00:00 2001 From: Alistair Smith Date: Wed, 21 Sep 2022 04:37:19 +0100 Subject: [PATCH] fix: testing needs TSUP_IS_NODE --- tests/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/index.ts b/tests/index.ts index 164c0947..c03816b8 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -3,6 +3,9 @@ import 'dotenv/config'; import assert from 'node:assert/strict'; import {test} from 'node:test'; +// @ts-expect-error This is usually injected by tsup +globalThis.TSUP_IS_NODE = true; + import {id, Hop, validateId} from '../src/index.js'; const BASE_URL =