wallet-kit / test / selftest.test.mjs
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// The "./selftest" export must keep working: run it end to end. It exercises
// the four artifacts, the pay-link round trip and the ledger fold, and installs
// its own in-memory localStorage shim under node.
import test from "node:test";
import assert from "node:assert/strict";
import { runWalletKitSelfTest } from "../dist/selftest.js";

test("runWalletKitSelfTest passes against dist", async () => {
  await assert.doesNotReject(() => runWalletKitSelfTest());
});

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/wallet-kit.git