import { IModelBankClient } from "@bentley/imodelbank-client" ; import { UrlFileHandler } from "@bentley/imodelbank-client/lib/cjs/itwin-client/file-handlers" ; import { IModelHubBackend } from "@bentley/imodelbank-client/lib/cjs/imodelhub-node" ; import { BackendHubAccess } from "@itwin/core-backend" ; export const assetsPath = `${ __dirname }/../../../lib/test/assets/` ; export const workDir = `${ __dirname }/../../../lib/test/output/` ; export function getIModelBankAccess ( ) { const orchestratorUrl = process . env . IMJS_TEST_IMODEL_BANK_URL ?? "" ; const bankClient = new IModelBankClient ( orchestratorUrl , new UrlFileHandler ( ) ) ; const hubAccess = new IModelHubBackend ( bankClient ) ; return hubAccess ; }