Commit 5015fec5 authored by Tomas Vik (OOO back on 2026-08-31)'s avatar Tomas Vik (OOO back on 2026-08-31) 🌴
Browse files

fix: handle ESM-only uuid v14 in Jest and ESLint configs

parent af7c3684
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
      {
        // ignoring `graphql-request` due to a bug in eslint-plugin-import
        // https://github.com/import-js/eslint-plugin-import/issues/2703
        "ignore": ["vscode", "graphql-request"]
        "ignore": ["vscode", "graphql-request", "^uuid$"]
      }
    ],
    "import/no-deprecated": "warn",
+2 −2
Original line number Diff line number Diff line
@@ -21,11 +21,11 @@ module.exports = {
    ],
  ],
  testPathIgnorePatterns: ['/node_modules/', '<rootDir>/webviews/', '/dist-/'],
  transformIgnorePatterns: ['/node_modules/(?!(@anycable/core|p-queue|p-timeout|nanoevents)/)'],
  transformIgnorePatterns: ['/node_modules/(?!(@anycable/core|p-queue|p-timeout|nanoevents|uuid)/)'],
  transform: {
    // why: For some reason, ts-jest was not working for these node_modules
    //      using babel-jest with a target of `node`, we're good to go.
    '/node_modules/(@anycable/core|p-queue|p-timeout|nanoevents).+\\.js$': 'babel-jest',
    '/node_modules/(@anycable/core|p-queue|p-timeout|nanoevents|uuid).+\\.js$': 'babel-jest',
    '^.+\\.html?$': '<rootDir>/jest_html_transformer.js',
  },
  testEnvironment: 'node',
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@
          "allure-commandline",
          "@wdio/json-reporter/mergeResults",
          "@influxdata/influxdb-client",
          "@wdio/logger"
          "@wdio/logger",
          "^uuid$"
        ]
      }
    ],