Skip to main content

Crate atrg_testing

Crate atrg_testing 

Source
Expand description

Test utilities for at-rust-go: mock clients, fake Jetstream, test app builder.

Pull this crate in under [dev-dependencies] to write fast, deterministic tests for your atrg handlers without any network access.

Re-exports§

pub use fake_jetstream::FakeJetstream;
pub use mock_client::MockAtprotoClient;
pub use test_app::seed_session;
pub use test_app::test_app;
pub use test_app::test_state;

Modules§

fake_jetstream
Fake Jetstream for testing event handlers.
mock_client
Mock AT Protocol client for testing.
test_app
Test application builder — in-memory everything, no network.