@itwin/insights-client
Version:
Insights client for the iTwin platform
24 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestDIContainer = void 0;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
const inversify_1 = require("inversify");
const TestUtilBootstrapper_1 = require("./imodels-client-test-utils/TestUtilBootstrapper");
const TestUtilTypes_1 = require("./imodels-client-test-utils/TestUtilTypes");
const IModelsClientsTestsConfig_1 = require("./IModelsClientsTestsConfig");
require("reflect-metadata");
let container;
function getTestDIContainer() {
if (container) {
return container;
}
container = new inversify_1.Container();
TestUtilBootstrapper_1.TestUtilBootstrapper.bind(container);
container.bind(TestUtilTypes_1.testUtilTypes.baseIntegrationTestsConfig).to(IModelsClientsTestsConfig_1.IModelsClientsTestsConfig).inSingletonScope();
return container;
}
exports.getTestDIContainer = getTestDIContainer;
//# sourceMappingURL=TestDiContainerProvider.js.map