Skip to content

Commit

Permalink
fix: testing needs TSUP_IS_NODE
Browse files Browse the repository at this point in the history
  • Loading branch information
alii committed Sep 21, 2022
1 parent dcd458c commit 96cffb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 96cffb6

Please sign in to comment.