• Create an isolated DAL instance for integration tests with optional schema isolation and automatic model registration.

    Parameters

    • options: TestHarnessOptions = {}

      Customization flags that control schema names, config overrides, and registration.

    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.