Fixed unit tests build errors
MODIFY
test/api/BillingStripeTestData.ts
test/api/BillingStripeTestData.ts
import { BillingInvoice, BillingInvoiceItem, BillingInvoiceStatus, BillingOperationResult, BillingUser, BillingUserData } from '../../src/types/Billing';
import { BillingSettings, BillingSettingsType, SettingDB } from '../../src/types/Setting';
-import FeatureToggles, { Feature } from '../../src/utils/FeatureToggles';
import chai, { assert, expect } from 'chai';
import BillingStorage from '../../src/storage/mongodb/BillingStorage';
@@ -11,8 +10,8 @@ import Cypher from '../../src/utils/Cypher';
import Factory from '../factories/Factory';
import Stripe from 'stripe';
import StripeBillingIntegration from '../../src/integration/billing/stripe/StripeBillingIntegration';
-import Tenant from '../../src/types/Tenant';
-import TenantComponents from '../../src/types/TenantComponents';
+import Tenant, { TenantComponents } from '../../src/types/Tenant';
+
import TenantContext from './context/TenantContext';
import TestConstants from './client/utils/TestConstants';
import User from '../../src/types/User';

MODIFY
test/api/BillingTest.ts
test/api/BillingTest.ts
@@ -19,7 +19,7 @@ import SiteContext from './context/SiteContext';
import { StatusCodes } from 'http-status-codes';
import Stripe from 'stripe';
import StripeBillingIntegration from '../../src/integration/billing/stripe/StripeBillingIntegration';
-import TenantComponents from '../../src/types/TenantComponents';
+import { TenantComponents } from '../../src/types/Tenant';
import TenantContext from './context/TenantContext';
import TestConstants from './client/utils/TestConstants';
import TestUtils from './TestUtils';

MODIFY
test/api/ComponentActivationTenantTest.ts
test/api/ComponentActivationTenantTest.ts
@@ -4,7 +4,7 @@ import chai, { expect } from 'chai';
import CentralServerService from './client/CentralServerService';
import ContextDefinition from './context/ContextDefinition';
import { StatusCodes } from 'http-status-codes';
-import TenantComponents from '../../src/types/TenantComponents';
+import { TenantComponents } from '../../src/types/Tenant';
import TestConstants from './client/utils/TestConstants';
import chaiSubset from 'chai-subset';
import config from '../config';

MODIFY
test/api/client/CentralServerService.ts
test/api/client/CentralServerService.ts
@@ -22,7 +22,7 @@ import SmartChargingApi from './SmartChargingApi';
import StatisticsApi from './StatisticsApi';
import { StatusCodes } from 'http-status-codes';
import TenantApi from './TenantApi';
-import TenantComponents from '../../../src/types/TenantComponents';
+import { TenantComponents } from '../../../src/types/Tenant';
import TestConstants from './utils/TestConstants';
import TransactionApi from './TransactionApi';
import User from '../../../src/types/User';

MODIFY
test/api/context/ContextBuilder.ts
test/api/context/ContextBuilder.ts
@@ -21,7 +21,7 @@ import StatisticsContext from './StatisticsContext';
import { StatusCodes } from 'http-status-codes';
import Tag from '../../../src/types/Tag';
import TagStorage from '../../../src/storage/mongodb/TagStorage';
-import TenantComponents from '../../../src/types/TenantComponents';
+import { TenantComponents } from '../../../src/types/Tenant';
import TenantContext from './TenantContext';
import TenantFactory from '../../factories/TenantFactory';
import TenantStorage from '../../../src/storage/mongodb/TenantStorage';

MODIFY
test/api/context/ContextProvider.ts
test/api/context/ContextProvider.ts
@@ -2,7 +2,7 @@ import chai, { expect } from 'chai';
import chaiSubset from 'chai-subset';
import { ObjectId } from 'mongodb';
import { OCPPVersion } from '../../../src/types/ocpp/OCPPServer';
-import TenantComponents from '../../../src/types/TenantComponents';
+import { TenantComponents } from '../../../src/types/Tenant';
import Constants from '../../../src/utils/Constants';
import config from '../../config';
import Factory from '../../factories/Factory';

Fixed unit tests build errors