Skip to content

test: remove dups, consolidate onto adapter contracts - #30

Merged
bhflm merged 1 commit into
devfrom
chore/test-sweep
Aug 12, 2026
Merged

bhflm merged 1 commit into
devfrom
chore/test-sweep

Conversation

@bhflm

@bhflm bhflm commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Move 65 Node-only tests into the shared ChainStorage/WalletStorage
conformance suites. The same assertions now run once against both the
Node and browser adapters instead of being duplicated per adapter.
Contract assertions grow 47 -> 52.

Rewrite entry-point tests to guard the real invariant: importing an
entry point must not eagerly load better-sqlite3. They no longer
re-assert the export list.

Delete src/chain/index.ts and src/wallet/index.ts. Both barrels had no
importers. The published entry points (., ./node, ./browser) export an
identical surface before and after.

tests go from 116 to 51, all passing. No public API change.

@bhflm
bhflm requested a review from mattgle August 10, 2026 23:07
@bhflm
bhflm force-pushed the chore/test-sweep branch from 09c8136 to 6612045 Compare August 12, 2026 12:13
@bhflm
bhflm merged commit 6612045 into dev Aug 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants