// test dependencies that require transformation
const pluginsToTransform = [].join('|');

/**
 * TODO check if we can process inline webpack loaders (e.g. as found in https://github.com/phovea/phovea_ui/blob/master/src/_bootstrap.ts)
 * see also https://jestjs.io/docs/en/webpack#mocking-css-modules
 */
module.exports = {
  transform: {
    "^.+\\.tsx?$": "ts-jest",
    "\\.xml$": "jest-raw-loader"
  },
  testRegex: "(.*(test|spec))\\.(tsx?)$",
  moduleFileExtensions: [
    "ts",
    "tsx",
    "js",
    "jsx",
    "json",
    "node"
  ],
  modulePaths: [
    "src",
    "../"
  ],
  transformIgnorePatterns: [`../node_modules/(?!${pluginsToTransform})`],
  globals: {
    "__VERSION__": "TEST_VERSION",
    "__APP_CONTEXT__": "TEST_CONTEXT"
  },
  moduleNameMapper: {
    "^.+\\.(css|less|scss|sass)$": "identity-obj-proxy",
    "imports-loader?.*": "imports-loader",
    "raw-loader?.*": "raw-loader",
    "file-loader?.*": "file-loader",
    "script-loader?.*": "script-loader"
  }
}

@@ -46,12 +46,10 @@
 ion%0A
-cons
+le
 t pl
@@ -72,20 +72,448 @@
  = %5B
-%5D.join('%7C');
+%0A  'tdp_*',%0A  'phovea_*',%0A  'lineupjs'%0A%5D.join('%7C');%0A%0Aif(pluginsToTransform.length %3E 0) %7B%0A /**  Attention: Negative Lookahead! This regex adds the specified repos to a whitelist that holds plugins that are excluded from the transformIgnorePatterns.%0A  * This means that pluginsToTransform should contain all repos that export ts files. They can only be handled by the transformation. */%0A    pluginsToTransform = %60(?!$%7BpluginsToTransform%7D)%60;%0A%7D
 %0A%0A/*
@@ -1052,19 +1052,16 @@
 modules/
-(?!
 $%7Bplugin
@@ -1073,17 +1073,54 @@
 ansform%7D
-)
+%60, %60node_modules/$%7BpluginsToTransform%7D
 %60%5D,%0A  gl

update jest config