@queuert/mysql/conformance
Conformance cases for MySQL and MariaDB providers.
$npm install @queuert/mysql
Functions2
Types3
- ConformanceTestCaseOne conformance case, to wrap in a test of any test runner. The test file creates the context before the cases (for example in beforeAll) and releases the resources behind it, such as the database, after them.
- MysqlMigratorConformanceContextExperimentalThe context the mysqlMigratorConformanceCases run against. Get it from createMysqlMigratorConformanceContext and pass it to every case unchanged.
- MysqlStateProviderConformanceContextExperimentalThe context the mysqlStateProviderConformanceCases run against. Get it from createMysqlStateProviderConformanceContext and pass it to every case unchanged.
Variables2
- mysqlMigratorConformanceCasesExperimentalCases that check createMysqlMigrator over a provider: its history, transactional and non-transactional migrations, reverts and lease. Run them one per test in your own test file against a context from createMysqlMigratorConformanceContext. Works with any test runner.
- mysqlStateProviderConformanceCasesExperimentalEvery state adapter contract case, run through createMysqlStateAdapter over a provider. Run them one per test in your own test file against a context from createMysqlStateProviderConformanceContext. Works with any test runner.