diff --git a/tests/e2e/dm-manual.test.ts b/tests/e2e/dm-manual.test.ts index 50c6df54..e8c6677b 100644 --- a/tests/e2e/dm-manual.test.ts +++ b/tests/e2e/dm-manual.test.ts @@ -13,10 +13,12 @@ import { mkdirSync, rmSync, existsSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; import { tmpdir } from 'node:os'; import type { DirectMessage } from '../../types'; +// One definition (env-overridable): three local copies all named the deleted v1 +// file, whose networkId 3 stopped matching `network: 'testnet'` at the cutover. +import { TRUSTBASE_URL } from './support/staging'; const rand = () => Math.random().toString(36).slice(2, 8); -const TRUSTBASE_URL = 'https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/bft-trustbase.testnet.json'; const DEFAULT_API_KEY = 'sk_06365a9c44654841a366068bcfc68986'; // Timeout for waiting for DM (60 seconds) diff --git a/tests/e2e/dm-nip17.test.ts b/tests/e2e/dm-nip17.test.ts index 5a3d54a6..074b455c 100644 --- a/tests/e2e/dm-nip17.test.ts +++ b/tests/e2e/dm-nip17.test.ts @@ -16,10 +16,12 @@ import { mkdirSync, rmSync, existsSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; import { tmpdir } from 'node:os'; import type { DirectMessage } from '../../types'; +// One definition (env-overridable): three local copies all named the deleted v1 +// file, whose networkId 3 stopped matching `network: 'testnet'` at the cutover. +import { TRUSTBASE_URL } from './support/staging'; const rand = () => Math.random().toString(36).slice(2, 8); -const TRUSTBASE_URL = 'https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/bft-trustbase.testnet.json'; const DEFAULT_API_KEY = 'sk_06365a9c44654841a366068bcfc68986'; function makeTempDirs(label: string) { diff --git a/tests/e2e/wallet-clear.test.ts b/tests/e2e/wallet-clear.test.ts index e0f48cc7..4821d12f 100644 --- a/tests/e2e/wallet-clear.test.ts +++ b/tests/e2e/wallet-clear.test.ts @@ -22,10 +22,12 @@ import { STORAGE_KEYS_GLOBAL } from '../../constants'; import { mkdirSync, rmSync, existsSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; import { tmpdir } from 'node:os'; +// One definition (env-overridable): three local copies all named the deleted v1 +// file, whose networkId 3 stopped matching `network: 'testnet'` at the cutover. +import { TRUSTBASE_URL } from './support/staging'; const rand = () => Math.random().toString(36).slice(2, 8); -const TRUSTBASE_URL = 'https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/bft-trustbase.testnet.json'; const DEFAULT_API_KEY = 'sk_06365a9c44654841a366068bcfc68986'; function makeTempDirs(label: string) {