You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* test(truapi): adopt Vitest testing style for @parity/truapi
Migrate the JS package tests from the bespoke Bun runner to Vitest, matching
the product-sdk testing style: colocated src/**/*.test.ts files, describe/it
blocks, and expect() assertions.
- Add vitest devDep + vitest.config.ts; test script runs `vitest run`.
- Move the five test/*.test.mjs suites next to the code they cover and rewrite
them with describe/it + expect. The wire-table loop becomes an it.each over
every generated frame id.
- The explorer registry test imports the source module so it runs without a
prior build.
- Exclude src/**/*.test.ts from the build tsconfig so tests never land in dist.
- Scope a Prettier override (4-space, 100 width) to the test files.
- Drop the unused setup-bun step from the ts-client CI job and refresh the docs
and ts-client-checks skill.
* test(truapi): run the suite with bun test instead of Vitest
Use Bun's built-in test runner: the repo already depends on bun, so this
drops the Vitest devDependency (and its config) while keeping the same
product-sdk-style describe/it/expect tests.
- Imports come from "bun:test"; add @types/bun for editor support.
- test script runs `bun test` (auto-discovers src/**/*.test.ts, no config).
- Restore the setup-bun step on the ts-client CI job.
- Refresh docs and the ts-client-checks skill.
* refactor(truapi): iframe MessagePort handshake and SCALE codec additions
Switch the in-iframe client to the host-transferred MessagePort handshake
(truapi-ready / truapi-init) used by the WASM host runtime, and extend the
SCALE primitives (Struct, _void, str, hex helpers) consumed by the generated
codecs. Pulls @noble/hashes in as a hex-codec dependency.
* revert(truapi): drop iframe MessagePort handshake from this PR
The truapi-ready/truapi-init handshake pairs with the WASM host's
createIframeHost (#104). Keep sandbox.ts at base so merging to main does not
break the deployed playground against the current host.
* refactor(truapi): use @noble/hashes concatBytes in wire encoding
Replace the hand-rolled byte concatenation with the concatBytes helper now
that @noble/hashes is a dependency.
Copy file name to clipboardExpand all lines: playground/CLAUDE.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
7
7
An interactive explorer for the TrUAPI, the Host API surface exposed to products running inside the Polkadot Desktop Browser webview. The app must be opened from within a Host environment. It talks to the host over iframe `postMessage` frames or the native webview `window.__HOST_API_PORT__` MessagePort.
8
8
9
9
To develop locally, run `yarn dev` and open the app via `https://dot.li/localhost:3000` inside the Desktop Host.
10
+
For host-backed diagnosis/e2e runs, signer-bot settings may live in the
11
+
repo-root `.env`; if they are not present in the current worktree environment,
12
+
load or copy them from that file before treating signer-bot as unavailable.
0 commit comments