sqliteMigratorConformanceCases
VariableExperimentalSignature
const sqliteMigratorConformanceCases: ConformanceTestCase<SqliteMigratorConformanceContext>[];sqlite/src/conformance/migrator-conformance.ts:117
Cases that check createSqliteMigrator over the provider in its mode: its history,
transactional and non-transactional migrations, reverts and, over an asynchronous provider, its
lease. The synchronous migrator takes no lease, so the lease cases pass without running over a
provider with sync: true. Run them one per test in your
own test file against a context from createSqliteMigratorConformanceContext. Works with
any test runner.
Example
TypeScript
import { test } from "vitest";
const context = createSqliteMigratorConformanceContext({
stateProvider: createBetterSqlite3Provider({ db: new Database(":memory:") }),
});
for (const conformanceCase of sqliteMigratorConformanceCases) {
test(conformanceCase.title, async () => {
await conformanceCase.run(context);
});
}