UNPKG

@itwin/insights-client

Version:

Insights client for the iTwin platform

23 lines 1.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTestDIContainer = getTestDIContainer; /*--------------------------------------------------------------------------------------------- * 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; } //# sourceMappingURL=TestDiContainerProvider.js.map