serverpod_test_public_exports library

Classes

AuthenticationOverride
An override for the authentication state in a test session.
TestSessionBuilder
A test specific builder to create a Session that for instance can be used to call database methods. The builder can also be passed to endpoint calls. The builder will create a new session for each call.

Enums

RollbackDatabase
Options for when to rollback the database during the test lifecycle.
TestServerOutputMode
Options for controlling test server output during test execution.

Functions

flushEventQueue() Future<void>
Test helper to flush the event queue. Useful for waiting for async events to complete before continuing the test.

Typedefs

TestClosure<T> = void Function(TestSessionBuilder testSession, T endpoints)
The test closure that is called by the withServerpod test helper.

Exceptions / Errors

ConnectionClosedException
Thrown if a stream connection is closed with an error. For example, if the user authentication was revoked.
InvalidConfigurationException
Thrown when an invalid configuration state is found.
ServerpodInsufficientAccessException
The authentication key provided did not have sufficient access.
ServerpodUnauthenticatedException
The user was not authenticated.