kern-orm 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1 @@
1
- import { G as TestFixture, J as TestTransactionOptions, K as TestHelpers, Li as Driver, U as OpenedTestFixture, W as PendingTestFixture, Y as createTestHelpers, q as TestHooks } from "./index-B1aH5Ht0.mjs";
2
- /** Options of `describeDriverContract`: how to create the driver under test. */
3
- interface DriverContractOptions {
4
- /** Creates a driver over a new client of the test database with `max` connections. */
5
- createDriver(options: {
6
- max: number;
7
- }): Driver;
8
- /** Creates a driver over a new client of the test database whose parsers of result values throw; for a client without parsers, the same as `createDriver`. */
9
- createDriverWithFailingParsers(): Driver;
10
- }
11
- /**
12
- * Functions of a test runner that declare the tests of `describeDriverContract`.
13
- *
14
- * They are `describe`, `it`, `before`, and `after` of `node:test`, and `describe`, `it`, `beforeAll`, and `afterAll` of `bun:test` and Vitest.
15
- */
16
- interface DriverContractRunner extends TestHooks {
17
- describe(name: string, body: () => void): unknown;
18
- it(name: string, test: () => Promise<void>): unknown;
19
- }
20
- /**
21
- * Declares the tests of the contract of `Driver` for a driver.
22
- *
23
- * They run in the empty database of its clients and leave it unchanged.
24
- */
25
- export declare function describeDriverContract(options: DriverContractOptions, runner: DriverContractRunner): void;
26
- export { type DriverContractOptions, type DriverContractRunner, type OpenedTestFixture, type PendingTestFixture, type TestFixture, type TestHelpers, type TestHooks, type TestTransactionOptions, createTestHelpers };
1
+ export * from "kern-db/testing";