]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/jest.config.cjs
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / jest.config.cjs
index a08aaebc724bedc49fa4f409ae529fb9aa174991..9cdf6be4b46375ea0f40d19bcc08ddb8d0e42cdb 100644 (file)
@@ -1,44 +1,39 @@
-const esModules = ['@angular', '@ngrx', '@progress', 'simplebar', 'lodash-es', 'react-syntax-highlighter', 'swagger-client', '@ng-bootstrap'];
+const esModules = [
+  '@angular',
+  '@ngrx',
+  '@progress',
+  'simplebar',
+  'lodash-es',
+  'react-syntax-highlighter',
+  'swagger-client',
+  '@ng-bootstrap'
+];
 const jestConfig = {
-    globals: {
-        'ts-jest': {
-            useESM: true,
-            stringifyContentPathRegex: '\\.(html|svg)$',
-            tsconfig: '<rootDir>/tsconfig.spec.json',
-            isolatedModules: true
-        },
-    },
-    globalSetup: 'jest-preset-angular/global-setup',
-    moduleNameMapper: {
-        "\\.scss$": "identity-obj-proxy",
-        "~/(.*)$": "<rootDir>/src/$1"
-    },
-    moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs', 'cjs'],
-    preset: "jest-preset-angular",
-    setupFilesAfterEnv: [
-        "<rootDir>/src/setupJest.ts"
-    ],
-    transformIgnorePatterns: [
-        "node_modules/(?!.*\\.mjs$|".concat(esModules.join('|'), ")")
-    ],
-    transform: {
-        "^.+\\.(ts|html|mjs)$": "jest-preset-angular",
-        "^.+\\.(js)$": "babel-jest"
-    },
-    setupFiles: [
-        "jest-canvas-mock"
-    ],
-    coverageReporters: [
-        "cobertura",
-        "html"
-    ],
-    modulePathIgnorePatterns: [
-        "<rootDir>/coverage/",
-        "<rootDir>/node_modules/simplebar-angular",
-    ],
-    testMatch: [
-        "**/*.spec.ts"
-    ],
-    testRunner: 'jest-jasmine2'
+  globals: {
+    'ts-jest': {
+      useESM: true,
+      stringifyContentPathRegex: '\\.(html|svg)$',
+      tsconfig: '<rootDir>/tsconfig.spec.json',
+      isolatedModules: true
+    }
+  },
+  globalSetup: 'jest-preset-angular/global-setup',
+  moduleNameMapper: {
+    '\\.scss$': 'identity-obj-proxy',
+    '~/(.*)$': '<rootDir>/src/$1'
+  },
+  moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs', 'cjs'],
+  preset: 'jest-preset-angular',
+  setupFilesAfterEnv: ['<rootDir>/src/setupJest.ts'],
+  transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$|'.concat(esModules.join('|'), ')')],
+  transform: {
+    '^.+\\.(ts|html|mjs)$': 'jest-preset-angular',
+    '^.+\\.(js)$': 'babel-jest'
+  },
+  setupFiles: ['jest-canvas-mock'],
+  coverageReporters: ['cobertura', 'html'],
+  modulePathIgnorePatterns: ['<rootDir>/coverage/', '<rootDir>/node_modules/simplebar-angular'],
+  testMatch: ['**/*.spec.ts'],
+  testRunner: 'jest-jasmine2'
 };
 module.exports = jestConfig;