Skip to content

Test the artifact prefetch progress reporting - #352

Open
probablyABug wants to merge 2 commits into
crackedstudio:mainfrom
probablyABug:test-artifacts
Open

Test the artifact prefetch progress reporting#352
probablyABug wants to merge 2 commits into
crackedstudio:mainfrom
probablyABug:test-artifacts

Conversation

@probablyABug

Copy link
Copy Markdown
Contributor

What changed

Removed the import-time artifact prefetch side effect so the client artifact module can be tested without triggering real network requests. Added deterministic tests covering streamed download progress, missing content-length handling, concurrent prefetch calls, error propagation, and progress subscriptions.

Why

Closes #321

The artifact prefetch logic previously had no test coverage and could not be imported safely in tests because importing the module triggered a real fetch. These changes make the behavior independently testable and verify that progress reporting, concurrent request sharing, subscriptions, and download failures behave as expected.

Testing

  • Circuit tests (cd circuits && npm test)
  • Contract tests (cd contracts && cargo test)
  • E2E against testnet (npm run e2e)
  • App tested manually (cd app && npm run dev)
  • Docs-only (no code changed)

Screenshots

Not applicable — no app UI changes.

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.

Test the artifact prefetch progress reporting

2 participants