test: fix simulator configuration test
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 28 Aug 2024 16:40:40 +0000 (18:40 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 28 Aug 2024 16:40:40 +0000 (18:40 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Configuration.ts

index a8e16dabb0c4ec09becd022b8cdd397fc2a91767..e4736c264b5fb0463dad3c9b8c8ac69317c63256 100644 (file)
@@ -79,6 +79,15 @@ const defaultWorkerConfiguration: WorkerConfiguration = {
 
 // eslint-disable-next-line @typescript-eslint/no-extraneous-class
 export class Configuration {
+  public static configurationChangeCallback?: () => Promise<void>
+
+  private static configurationData?: ConfigurationData
+  private static configurationFile: string | undefined
+  private static configurationFileReloading = false
+  private static configurationFileWatcher?: FSWatcher
+  private static configurationSectionCache: Map<ConfigurationSection, ConfigurationSectionType>
+
+  // eslint-disable-next-line perfectionist/sort-classes
   static {
     const configurationFile = join(dirname(fileURLToPath(import.meta.url)), 'assets', 'config.json')
     if (existsSync(configurationFile)) {
@@ -115,14 +124,6 @@ export class Configuration {
     ])
   }
 
-  public static configurationChangeCallback?: () => Promise<void>
-  private static configurationData?: ConfigurationData
-  private static configurationFile: string | undefined
-  private static configurationFileReloading = false
-  private static configurationFileWatcher?: FSWatcher
-
-  private static configurationSectionCache: Map<ConfigurationSection, ConfigurationSectionType>
-
   private constructor () {
     // This is intentional
   }