test perf cleanup
MODIFY
package.json
package.json
"npm-check": "npm-check",
"check:i18n": "cross-env TS_NODE_FILES=true ts-node-dev --files test/I18nChecker.ts",
"import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}' 'test/**/*.ts{,x}' 'types/**/*.ts{,x}'",
- "test": "npm run test:jest -- test/**/*Test.ts",
- "test:createContext": "npm run test:jest -- test/**/**/ContextBuilderRunner.ts",
+ "test": "npm run test:jest -- test/api/*Test.ts",
+ "test:createContext": "npm run test:jest -- test/api/context/ContextBuilderRunner.ts",
"test:create:utbilling": "cross-env TS_NODE_FILES=true TENANT_FILTER=utbilling.* jest --config='test/jest.config.ts' --runInBand --logHeapUsage --verbose --colors --silent --forceExit -- test/**/**/ContextBuilderRunner.ts",
- "test:asset": "npm run test:jest -- test/**/AssetTest.ts",
- "test:authentication": "npm run test:jest -- test/**/AuthenticationTest.ts",
- "test:billing": "npm run test:jest -- test/**/BillingTest.ts",
- "test:bp": "npm run test:jest -- test/**/BillingPlatformTest.ts",
- "test:car": "npm run test:jest -- test/**/CarTest.ts",
- "test:componentActivation": "npm run test:jest -- test/**/ComponentActivation*Test.ts",
- "test:crypto": "npm run test:jest -- test/**/EncryptionSettingTest.ts",
- "test:filter": "npm run test:jest -- test/**/FilterTest.ts",
- "test:firmwareUpdateStatus": "npm run test:jest -- test/**/FirmwareUpdateStatusTest.ts",
- "test:locking": "npm run test:jest -- test/**/LockingTest.ts",
- "test:ocpi": "npm run test:jest -- test/**/OCPIServerTest.ts",
- "test:ocpp": "npm run test:jest -- test/**/OCPP*Test.ts",
- "test:oicp": "npm run test:jest -- test/**/OICP*Test.ts",
- "test:registrationToken": "npm run test:jest -- test/**/RegistrationTokenTest.ts",
- "test:security": "npm run test:jest -- test/**/SecurityTest.ts",
- "test:setting": "npm run test:jest -- test/**/*SettingTest.ts",
- "test:org": "npm run test:jest -- test/**/*Org*Test.ts",
- "test:company": "npm run test:jest -- test/**/CompanyOrg*Test.ts",
- "test:site": "npm run test:jest -- test/**/SiteOrg*Test.ts",
- "test:siteArea": "npm run test:jest -- test/**/SiteAreaOrg*Test.ts",
- "test:smartCharging": "npm run test:jest -- test/**/SmartChargingTest.ts",
- "test:stat": "npm run test:jest -- test/**/StatisticsTest.ts",
- "test:tag": "npm run test:jest -- test/**/TagTest.ts",
- "test:tenant": "npm run test:jest -- test/**/*TenantTest.ts",
- "test:transaction": "npm run test:jest -- test/**/TransactionTest.ts",
- "test:template": "npm run test:jest -- test/**/UnitTestTemplate.ts",
- "test:user": "npm run test:jest -- test/**/UserTest.ts",
+ "test:asset": "npm run test:jest -- test/api/AssetTest.ts",
+ "test:authentication": "npm run test:jest -- test/api/AuthenticationTest.ts",
+ "test:billing": "npm run test:jest -- test/api/BillingTest.ts",
+ "test:bp": "npm run test:jest -- test/api/BillingPlatformTest.ts",
+ "test:car": "npm run test:jest -- test/api/CarTest.ts",
+ "test:componentActivation": "npm run test:jest -- test/api/ComponentActivationTenantTest.ts",
+ "test:crypto": "npm run test:jest -- test/api/EncryptionSettingTest.ts",
+ "test:filter": "npm run test:jest -- test/api/FilterTest.ts",
+ "test:firmwareUpdateStatus": "npm run test:jest -- test/api/FirmwareUpdateStatusTest.ts",
+ "test:locking": "npm run test:jest -- test/api/LockingTest.ts",
+ "test:ocpi": "npm run test:jest -- test/api/OCPIServerTest.ts",
+ "test:ocpp": "npm run test:jest -- test/api/OCPP*Test.ts",
+ "test:oicp": "npm run test:jest -- test/api/OICP*Test.ts",
+ "test:registrationToken": "npm run test:jest -- test/api/RegistrationTokenTest.ts",
+ "test:security": "npm run test:jest -- test/api/SecurityTest.ts",
+ "test:setting": "npm run test:jest -- test/api/SettingTest.ts",
+ "test:org": "npm run test:jest -- test/api/*OrgTest.ts",
+ "test:company": "npm run test:jest -- test/api/CompanyOrg*Test.ts",
+ "test:site": "npm run test:jest -- test/api/SiteOrg*Test.ts",
+ "test:siteArea": "npm run test:jest -- test/api/SiteAreaOrg*Test.ts",
+ "test:smartCharging": "npm run test:jest -- test/api/SmartChargingTest.ts",
+ "test:stat": "npm run test:jest -- test/api/StatisticsTest.ts",
+ "test:tag": "npm run test:jest -- test/api/TagTest.ts",
+ "test:tenant": "npm run test:jest -- test/api/*TenantTest.ts",
+ "test:transaction": "npm run test:jest -- test/api/TransactionTest.ts",
+ "test:template": "npm run test:jest -- test/api/ChargingStationTemplateTest.ts",
+ "test:ut-template": "npm run test:jest -- test/api/UnitTestTemplate.ts",
+ "test:user": "npm run test:jest -- test/api/UserTest.ts",
"test:jest": "npm version && cross-env cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" TS_NODE_FILES=true jest --config='./test/jest.config.ts' --runInBand --logHeapUsage --verbose --colors --silent --forceExit"
},
"dependencies": {

MODIFY
test/api/ChargingStationTemplateTest.ts
test/api/ChargingStationTemplateTest.ts
@@ -19,7 +19,7 @@ describe('Charging Station Template', () => {
jest.setTimeout(60000);
beforeAll(() => {
- testData.superAdminCentralService = new CentralServerService('');
+ testData.superAdminCentralService = new CentralServerService();
});
afterAll(async () => {

test perf cleanup