test(simulator): use standard file namespace for tests
[e-mobility-charging-stations-simulator.git] / mikro-orm.config-template.ts
index 5f318c13083b62723b49c0d30cbbfdeee06d11c4..b89b975f2b1e6d7b918c34722eece50d8f2853b1 100644 (file)
@@ -1,16 +1,17 @@
-import Constants from './src/utils/Constants';
-import { PerformanceData } from './src/types/orm/entities/PerformanceData';
-import { PerformanceRecord } from './src/types/orm/entities/PerformanceRecord';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
 import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
-import { fileURLToPath } from 'url';
-import path from 'path';
+
+import { PerformanceData, PerformanceRecord } from './src/types';
+import { Constants } from './src/utils';
 
 export default {
   metadataProvider: TsMorphMetadataProvider,
   entities: [PerformanceRecord, PerformanceData],
   type: 'sqlite',
   clientUrl: `file://${path.join(
-    path.resolve(path.dirname(fileURLToPath(import.meta.url))),
+    path.dirname(fileURLToPath(import.meta.url)),
     `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`
   )}`,
 };