Parameters
- options: TestHarnessOptions = {}
Returns Promise<
{
cleanup: (options?: { dropSchema?: boolean }) => Promise<void>;
dal: DataAccessLayer;
registeredModels: Map<
string,
ModelConstructor<
JsonObject,
JsonObject,
ModelInstance<JsonObject, JsonObject>,
string,
>,
>;
schemaName: string;
schemaNamespace: string;
},
>
Handle to the isolated DAL along with helpers for cleanup.
Create an isolated DAL instance for integration tests with optional schema isolation and automatic model registration.