createSqliteStateProviderConformanceContext
FunctionCall Signature
Signature
function createSqliteStateProviderConformanceContext(options): SqliteStateProviderConformanceContext;sqlite/src/conformance/state-provider-conformance.ts:450
Prepares the context the sqliteStateProviderConformanceCases run against: migrates the schema once through a
provider from createStateProvider. Each case then builds its own adapter over a new provider
from it, with the tables cleared. Call it once the database is ready, such as in beforeAll;
the test file owns the database and releases it itself.
The context follows the provider's mode: for a SqliteStateProvider with sync: true it is
returned directly, and for an async provider it comes as a promise.
Parameters
- options
SqliteStateProviderConformanceOptions<"sync">Context configuration.
Returns
Call Signature
Signature
function createSqliteStateProviderConformanceContext(options): Promise<SqliteStateProviderConformanceContext>;sqlite/src/conformance/state-provider-conformance.ts:453
Prepares the context the sqliteStateProviderConformanceCases run against: migrates the schema once through a
provider from createStateProvider. Each case then builds its own adapter over a new provider
from it, with the tables cleared. Call it once the database is ready, such as in beforeAll;
the test file owns the database and releases it itself.
The context follows the provider's mode: for a SqliteStateProvider with sync: true it is
returned directly, and for an async provider it comes as a promise.
Parameters
- options
SqliteStateProviderConformanceOptionsContext configuration.