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.
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.