wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
759 stars 45 forks source link

Test action links not showing on some tests #2632

Closed trinode closed 3 years ago

trinode commented 3 years ago

Issue description or question

Hi there, I'm having issues whereby some tests are not being identified as tests or maybe it's just the display of the debug | view story | profile | focus bar above the tests that's not working.

I can see a couple of instances:-

I this one there are 2 describe blocks, the second one's tests are not identified (line 68 onwards):-

image

and another example, slightly different (it just stops recognising tests at a certain point):-

image

In this one it recognises a top level function as a test:- image

Commenting out the function does let it find the first test:- image

however it's interesting how the annotation from wallaby is on the wrong line (20 vs 48) - is this a problem with it not knowing about the original source file during transpiration or similar?

Wallaby diagnostics report

{
  editorVersion: '1.53.2',
  pluginVersion: '1.0.268',
  editorType: 'VSCode',
  osVersion: 'darwin 20.3.0',
  nodeVersion: 'v12.16.2',
  coreVersion: '1.0.1030',
  checksum: 'ODVhZDQ4M2ExNDljMjVjNDNmYzRiNDIwODg4M2NlMWUsMTYxMzg2NTYwMDAwMCwx',
  config: {
    diagnostics: {
      jest: {
        config: {
          configs: [
            {
              automock: false,
              cache: true,
              cacheDirectory: '/private/var/folders/bq/hysk_8q560qc38kvwyksn_1m0000gp/T/jest_dy',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '/node_modules/' ],
              cwd: '<homeDir>/Projects/masthead-v3',
              dependencyExtractor: undefined,
              detectLeaks: undefined,
              detectOpenHandles: undefined,
              displayName: undefined,
              errorOnDeprecated: false,
              extraGlobals: [],
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: {},
              haste: { computeSha1: false, throwOnModuleCollision: false },
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'js', 'svelte', 'ts' ],
              moduleLoader: undefined,
              moduleNameMapper: [
                [ '^@/components(.*)$', '<homeDir>/Projects/masthead-v3/src/components$1' ],
                [ '^@/svg(.*)$', '<homeDir>/Projects/masthead-v3/src/svg$1' ],
                [ '^@/utils(.*)$', '<homeDir>/Projects/masthead-v3/src/utils$1' ],
                [ '^@/src(.*)$', '<homeDir>/Projects/masthead-v3/src/$1' ],
                [ '\\.(css|scss)$', '<homeDir>/Projects/masthead-v3/test/mock-style.js' ]
              ],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: '82ce9821f8a49550a4ee84101e261614',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: undefined,
              restoreMocks: false,
              rootDir: '<homeDir>/Projects/masthead-v3',
              roots: [ '<homeDir>/Projects/masthead-v3' ],
              runner: 'jest-runner',
              setupFiles: [ '<homeDir>/Projects/masthead-v3/test/setup-tests.js' ],
              setupFilesAfterEnv: [ '<homeDir>/Projects/masthead-v3/node_modules/@testing-library/jest-dom/extend-expect.js' ],
              skipFilter: false,
              skipNodeResolution: undefined,
              slowTestThreshold: 5,
              snapshotResolver: undefined,
              snapshotSerializers: [],
              testEnvironment: '<homeDir>/Projects/masthead-v3/node_modules/jest-environment-jsdom/build/index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ '**/**/*.spec.*', '!**/*.snap' ],
              testPathIgnorePatterns: [ '/node_modules/' ],
              testRegex: [],
              testRunner: '<homeDir>/Projects/masthead-v3/node_modules/jest-jasmine2/build/index.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [
                [ '^.+\\.js$', '<homeDir>/Projects/masthead-v3/node_modules/babel-jest/build/index.js', {} ],
                [ '^.+\\.svelte$', '<homeDir>/Projects/masthead-v3/node_modules/jest-transform-svelte/index.js', {} ],
                [ '^.+\\.svg$', '<homeDir>/Projects/masthead-v3/test/svg-transform/index.js', {} ],
                [ '^.+\\.tsx?$', '<homeDir>/Projects/masthead-v3/node_modules/ts-jest/dist/index.js', {} ]
              ],
              transformIgnorePatterns: [ '/node_modules/', '\\.pnp\\.[^\\/]+$' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: [ 'src/**/*', '!**/test/**/*', '!**/*.snap', '!**/main.js', '!src/ts/**/*', '!src/server/debug/**/*' ],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: '<homeDir>/Projects/masthead-v3/coverage',
            coverageProvider: 'babel',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: undefined,
            detectLeaks: undefined,
            detectOpenHandles: undefined,
            enabledTestsMap: undefined,
            errorOnDeprecated: false,
            expand: false,
            filter: undefined,
            findRelatedTests: false,
            forceExit: false,
            globalSetup: undefined,
            globalTeardown: undefined,
            json: false,
            lastCommit: false,
            listTests: undefined,
            logHeapUsage: false,
            maxConcurrency: 5,
            maxWorkers: 11,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: false,
            onlyFailures: false,
            outputFile: undefined,
            passWithNoTests: undefined,
            projects: [],
            replname: undefined,
            reporters: undefined,
            rootDir: '<homeDir>/Projects/masthead-v3',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: '<homeDir>/Projects/masthead-v3/node_modules/jest-teamcity-reporter/index.js',
            testSequencer: '<homeDir>/Projects/masthead-v3/node_modules/@jest/test-sequencer/build/index.js',
            testTimeout: undefined,
            updateSnapshot: 'new',
            useStderr: false,
            verbose: undefined,
            watch: false,
            watchAll: false,
            watchPlugins: undefined,
            watchman: true
          },
          hasDeprecationWarnings: false,
          wallaby: {
            roots: [],
            watchPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|/\\..+/' ],
            testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|/\\..+/' ],
            testMatch: [ '**/**/*.spec.*', '!**/*.snap' ],
            testRegex: []
          }
        }
      }
    },
    testFramework: { version: 'jest@24.8.0', configurator: 'jest@24.8.0', reporter: 'jest@24.8.0', starter: 'jest@24.8.0', autoDetected: true },
    filesWithCoverageCalculated: [ 'src/**/*', '!**/test/**/*', '!**/*.snap', '!**/main.js', '!src/ts/**/*', '!src/server/debug/**/*' ],
    filesWithNoCoverageCalculated: [],
    globalSetup: false,
    micromatch: true,
    files: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true },
      { pattern: '\\./dist/|\\./build/|\\./coverage/|/\\..+/', regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\/\..+\//, ignore: true, trigger: true, load: true },
      { pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: '**/**/*.spec.*', ignore: true, trigger: true, load: true }
    ],
    tests: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, test: true },
      { pattern: '\\./dist/|\\./build/|\\./coverage/|/\\..+/', regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\/\..+\//, ignore: true, trigger: true, load: true, test: true },
      { pattern: '**/**/*.spec.*', ignore: false, trigger: true, load: true, test: true, order: 2 },
      { pattern: '**/*.snap', ignore: true, trigger: true, load: true, test: true }
    ],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    preprocessors: {},
    maxConsoleMessagesPerTest: 100,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    workers: { initial: 0, regular: 0, recycle: false },
    teardown: undefined,
    hints: {
      ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore/',
      ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    extensions: {},
    env: { type: 'node', params: {}, runner: '<homeDir>/.nvm/versions/node/v12.16.2/bin/node', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: 'auto.detect#-1415800486'
  },
  packageJSON: {
    dependencies: {
      '@koa/cors': '3.1.0',
      '@optimizely/js-sdk-logging': '0.1.0',
      '@optimizely/optimizely-sdk': '4.2.1',
      '@company-uk/company-search-ui': '0.3.0',
      '@company-uk/ukis-standard-logging': '0.5.2',
      axios: '0.20.0',
      'camelcase-keys': '6.2.2',
      'core-js': '3.6.5',
      dotenv: '8.2.0',
      'hash.js': '1.1.7',
      koa: '2.13.0',
      'koa-compress': '5.0.1',
      'koa-ejs': '4.3.0',
      'koa-router': '9.4.0',
      'koa-send': '5.0.1',
      'koa-static': '5.0.0',
      micromatch: '4.0.2',
      'pubsub-js': '1.9.0',
      tunnel: '0.0.6',
      unfetch: '4.1.0',
      uuid: '8.3.0',
      xhr: '2.5.0'
    },
    devDependencies: {
      '@babel/core': '7.11.6',
      '@babel/preset-env': '7.11.5',
      '@rollup/plugin-alias': '3.1.1',
      '@rollup/plugin-babel': '5.2.0',
      '@rollup/plugin-commonjs': '15.0.0',
      '@rollup/plugin-node-resolve': '9.0.0',
      '@rollup/plugin-typescript': '5.0.2',
      '@shopify/jest-koa-mocks': '2.2.3',
      '@company-uk/eslint-config-company': '33.0.0',
      '@company-uk/eslint-config-company-svelte': '33.0.0',
      '@company-uk/eslint-config-company-typescript': '33.0.0',
      '@testing-library/jest-dom': '5.11.4',
      '@testing-library/svelte': '3.0.0',
      '@types/dotenv-parse-variables': '0.2.0',
      '@types/jest': '26.0.13',
      '@types/koa': '2.11.4',
      '@types/koa-compress': '4.0.0',
      '@types/koa-ejs': '4.2.2',
      '@types/koa-router': '7.4.1',
      '@types/koa-static': '4.0.1',
      '@types/koa__cors': '3.0.1',
      '@types/micromatch': '4.0.1',
      '@types/supertest': '2.0.10',
      '@types/tunnel': '0.0.1',
      '@types/uuid': '8.3.0',
      autoprefixer: '9.8.6',
      'axios-mock-adapter': '1.18.2',
      'babel-jest': '26.3.0',
      'babel-root-slash-import': '1.1.0',
      eslint: '7.8.1',
      'eslint-config-prettier': '6.11.0',
      'eslint-import-resolver-alias': '1.1.2',
      'eslint-plugin-jest': '24.0.0',
      'eslint-plugin-svelte3': '2.7.3',
      finddeepjs: '1.2.2',
      husky: '4.3.0',
      jest: '26.4.2',
      'jest-cli': '26.4.2',
      'jest-teamcity-reporter': '0.9.0',
      'jest-transform-svelte': '2.1.1',
      'lint-staged': '10.3.0',
      mockdate: '3.0.2',
      'node-sass': '4.14.1',
      nodemon: '2.0.4',
      'npm-run-all': '4.1.5',
      'prettier-plugin-svelte': '1.2.1',
      'regenerator-runtime': '0.13.7',
      'replace-in-file': '6.1.0',
      rollup: '2.26.11',
      'rollup-plugin-livereload': '2.0.0',
      'rollup-plugin-root-import': '1.0.0',
      'rollup-plugin-scss': '2.6.1',
      'rollup-plugin-svelte': '6.0.1',
      'rollup-plugin-svgo': '1.1.0',
      'rollup-plugin-terser': '7.0.2',
      'sass-mq': '5.0.1',
      'sirv-cli': '1.0.6',
      stylelint: '13.7.0',
      'stylelint-config-css-modules': '2.2.0',
      'stylelint-config-company-uk': '3.2.0',
      'stylelint-scss': '3.18.0',
      'stylelint-selector-bem-pattern': '2.1.0',
      supertest: '4.0.2',
      svelte: '3.24.1',
      'svelte-preprocess': '4.2.1',
      'ts-jest': '26.3.0',
      'ts-node': '9.0.0',
      typescript: '4.0.2'
    }
  },
  fs: { numberOfFiles: 265 },
  debug: [
    '2021-02-18T23:00:47.044Z angular/cli config Angular CLI not found.\n',
    '2021-02-18T23:00:47.168Z jest/config Detected Jest.\n',
    '2021-02-18T23:00:47.169Z jest/config Configured Jest.\n',
    '2021-02-18T23:00:47.170Z project Wallaby Node version: v12.16.2\n',
    '2021-02-18T23:00:47.170Z project Wallaby config: <homeDir>/Projects/masthead-v3/auto.detect\n',
    '2021-02-18T23:00:47.522Z project File cache: <homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.268/projects/fbf2a123c28b200f\n',
    '2021-02-18T23:00:47.648Z uiService Listening port 51235\n',
    '2021-02-18T23:00:47.701Z workers Parallelism for initial run: 10, for regular run: 5\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #0\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #1\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #2\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #3\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #4\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #5\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #6\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #7\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #8\n',
    '2021-02-18T23:00:47.702Z workers Starting run worker instance #9\n',
    '2021-02-18T23:00:47.704Z workers Web server is listening at 56707\n',
    '2021-02-18T23:00:47.802Z project File cache requires some updates, waiting required files from IDE\n',
    '2021-02-18T23:00:47.825Z project Stopping process pool\n',
    '2021-02-18T23:00:47.827Z project Test run started; run priority: 3\n',
    '2021-02-18T23:00:47.830Z project Running all tests\n',
    '2021-02-18T23:00:47.835Z workers Starting test run, priority: 3\n',
    '2021-02-18T23:00:47.835Z workers Distributing tests between 10 workers\n',
    '2021-02-18T23:00:47.883Z workers Running tests in parallel\n',
    '2021-02-18T23:00:47.884Z nodeRunner Starting sandbox [worker #0, session #ei21d]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #1, session #enrai]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #2, session #392rr]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #3, session #uq6xo]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #4, session #4fbyv]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #5, session #wk80a]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #6, session #30hrd]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #7, session #kd01q]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #8, session #3ln91]\n',
    '2021-02-18T23:00:47.887Z nodeRunner Starting sandbox [worker #9, session #q7byj]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #0, session #ei21d]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #1, session #enrai]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #2, session #392rr]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #3, session #uq6xo]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #4, session #4fbyv]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #5, session #wk80a]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #6, session #30hrd]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #7, session #kd01q]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #8, session #3ln91]\n',
    '2021-02-18T23:00:47.889Z nodeRunner Preparing sandbox [worker #9, session #q7byj]\n',
    '2021-02-18T23:00:48.014Z workers Started run worker instance (delayed) #0\n',
    '2021-02-18T23:00:48.015Z nodeRunner Prepared sandbox [worker #0, session #ei21d]\n',
    '2021-02-18T23:00:48.015Z workers [worker #0, session #ei21d] Running tests in sandbox\n',
    '2021-02-18T23:00:48.052Z workers Started run worker instance (delayed) #3\n',
    '2021-02-18T23:00:48.052Z nodeRunner Prepared sandbox [worker #3, session #uq6xo]\n',
    '2021-02-18T23:00:48.052Z workers [worker #3, session #uq6xo] Running tests in sandbox\n',
    '2021-02-18T23:00:48.074Z workers Started run worker instance (delayed) #1\n',
    '2021-02-18T23:00:48.074Z nodeRunner Prepared sandbox [worker #1, session #enrai]\n',
    '2021-02-18T23:00:48.074Z workers [worker #1, session #enrai] Running tests in sandbox\n',
    '2021-02-18T23:00:48.081Z workers Started run worker instance (delayed) #2\n',
    '2021-02-18T23:00:48.081Z nodeRunner Prepared sandbox [worker #2, session #392rr]\n',
    '2021-02-18T23:00:48.081Z workers [worker #2, session #392rr] Running tests in sandbox\n',
    '2021-02-18T23:00:48.135Z workers Started run worker instance (delayed) #5\n',
    '2021-02-18T23:00:48.135Z nodeRunner Prepared sandbox [worker #5, session #wk80a]\n',
    '2021-02-18T23:00:48.135Z workers [worker #5, session #wk80a] Running tests in sandbox\n',
    '2021-02-18T23:00:48.170Z workers Started run worker instance (delayed) #4\n',
    '2021-02-18T23:00:48.170Z nodeRunner Prepared sandbox [worker #4, session #4fbyv]\n',
    '2021-02-18T23:00:48.170Z workers [worker #4, session #4fbyv] Running tests in sandbox\n',
    '2021-02-18T23:00:48.255Z workers Started run worker instance (delayed) #7\n',
    '2021-02-18T23:00:48.255Z nodeRunner Prepared sandbox [worker #7, session #kd01q]\n',
    '2021-02-18T23:00:48.255Z workers [worker #7, session #kd01q] Running tests in sandbox\n',
    '2021-02-18T23:00:48.258Z workers Started run worker instance (delayed) #6\n',
    '2021-02-18T23:00:48.259Z nodeRunner Prepared sandbox [worker #6, session #30hrd]\n',
    '2021-02-18T23:00:48.259Z workers [worker #6, session #30hrd] Running tests in sandbox\n',
    '2021-02-18T23:00:48.275Z workers Started run worker instance (delayed) #9\n',
    '2021-02-18T23:00:48.275Z nodeRunner Prepared sandbox [worker #9, session #q7byj]\n',
    '2021-02-18T23:00:48.275Z workers [worker #9, session #q7byj] Running tests in sandbox\n',
    '2021-02-18T23:00:48.284Z workers Started run worker instance (delayed) #8\n',
    '2021-02-18T23:00:48.284Z nodeRunner Prepared sandbox [worker #8, session #3ln91]\n',
    '2021-02-18T23:00:48.284Z workers [worker #8, session #3ln91] Running tests in sandbox\n',
    '2021-02-18T23:00:49.701Z fs No metadata for added file found: .git/.watchman-cookie-UKC02YC484JG5H-890-1003\n',
    '2021-02-18T23:00:49.801Z fs File deleted: .git/.watchman-cookie-UKC02YC484JG5H-890-1003\n',
    '2021-02-18T23:00:49.801Z fs No metadata for deleted file found: .git/.watchman-cookie-UKC02YC484JG5H-890-1003\n',
    '2021-02-18T23:00:57.871Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.596Z\n',
    '2021-02-18T23:00:58.380Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.558Z\n',
    '2021-02-18T23:00:58.703Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.492Z\n',
    '2021-02-18T23:00:58.720Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.734Z\n',
    '2021-02-18T23:00:59.772Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.725Z\n',
    '2021-02-18T23:01:00.274Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.594Z\n',
    '2021-02-18T23:01:00.858Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.521Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.577Z workers [uq6xo] Test executed: renders the Extra Link correctly\n',
    '2021-02-18T23:01:01.578Z workers [uq6xo] Test executed: renders nothing if no props are passed\n',
    '2021-02-18T23:01:01.584Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.585Z workers [uq6xo] Test executed: renders the component\n',
    '2021-02-18T23:01:01.586Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.586Z workers [uq6xo] Test executed: trackNotification returns false\n',
    '2021-02-18T23:01:01.588Z workers [uq6xo] Test executed: trackNotification returns false\n',
    '2021-02-18T23:01:01.588Z workers [uq6xo] Test executed: calls window.companyTags.queue.push()\n',
    '2021-02-18T23:01:01.589Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.591Z workers [uq6xo] Test executed: adds allowed params to store\n',
    '2021-02-18T23:01:01.591Z workers [uq6xo] Test executed: parses integers\n',
    '2021-02-18T23:01:01.591Z workers [uq6xo] Test executed: parses boolean true\n',
    '2021-02-18T23:01:01.592Z workers [uq6xo] Test executed: parses boolean false\n',
    '2021-02-18T23:01:01.593Z workers [uq6xo] Test executed: does not add non-allowed params\n',
    '2021-02-18T23:01:01.594Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.595Z workers [uq6xo] Test executed: does not set defaults if proxy config not passed\n',
    '2021-02-18T23:01:01.595Z workers [uq6xo] Test executed: uses logging axios instance with logger\n',
    '2021-02-18T23:01:01.596Z workers [uq6xo] Test executed: sets the defaults using proxy config\n',
    '2021-02-18T23:01:01.598Z workers [uq6xo] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:01.599Z workers [uq6xo] Test executed: sets currentActive route on the matched route\n',
    '2021-02-18T23:01:01.600Z workers [uq6xo] Test executed: sets currentActive route on the matched route and its parent\n',
    '2021-02-18T23:01:01.600Z workers [uq6xo] Test executed: sets currentActive route on the matched route and its parent with no trailing slash\n',
    '2021-02-18T23:01:01.601Z workers [uq6xo] Test executed: reset all currentActive when there is no match\n',
    '2021-02-18T23:01:01.649Z workers [uq6xo] Run 18 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:01.650Z workers Jest Test Run Complete: 2021-02-18T23:01:01.576Z\n',
    '2021-02-18T23:01:01.651Z workers [uq6xo] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:01.754Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.744Z\n',
    '2021-02-18T23:01:02.235Z workers [wk80a] Test executed: creates the logo\n',
    '2021-02-18T23:01:02.236Z workers [wk80a] Test executed: creates the copyright notice\n',
    '2021-02-18T23:01:02.236Z workers [wk80a] Test executed: Terms and Conditions\n',
    '2021-02-18T23:01:02.237Z workers [wk80a] Test executed: Privacy & cookies notice\n',
    '2021-02-18T23:01:02.237Z workers [wk80a] Test executed: Accessibility\n',
    '2021-02-18T23:01:02.238Z workers [wk80a] Test executed: Site map\n',
    '2021-02-18T23:01:02.238Z workers [wk80a] Test executed: Contact us\n',
    '2021-02-18T23:01:02.238Z workers [wk80a] Test executed: Complaints\n',
    '2021-02-18T23:01:02.239Z workers [wk80a] Test executed: company Group\n',
    '2021-02-18T23:01:02.239Z workers [wk80a] Test executed: creates the country switch\n',
    '2021-02-18T23:01:02.240Z workers [wk80a] Test executed: when the user interacts via mouse\n',
    '2021-02-18T23:01:02.240Z workers [wk80a] Test executed: when the user interacts via touch\n',
    '2021-02-18T23:01:02.241Z workers [wk80a] Test executed: hides the logo\n',
    '2021-02-18T23:01:02.242Z workers [wk80a] Test executed: hides the nav\n',
    '2021-02-18T23:01:02.242Z workers [wk80a] Test executed: hides the country switcher\n',
    '2021-02-18T23:01:02.243Z workers [wk80a] Test executed: renders with content\n',
    '2021-02-18T23:01:02.244Z workers [wk80a] Test executed: uses gb content\n',
    '2021-02-18T23:01:02.244Z workers [wk80a] Test executed: uses ie content\n',
    '2021-02-18T23:01:02.246Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:02.246Z workers [wk80a] Test executed: is called with the correct options\n',
    '2021-02-18T23:01:02.247Z workers [wk80a] Test executed: returns an empty array\n',
    '2021-02-18T23:01:02.247Z workers [wk80a] Test executed: returns an empty array\n',
    '2021-02-18T23:01:02.247Z workers [wk80a] Test executed: is called with the correct options\n',
    '2021-02-18T23:01:02.248Z workers [wk80a] Test executed: hashes the tokens in localStorage to prevent malicious attackers getting tokens\n',
    '2021-02-18T23:01:02.250Z workers [wk80a] Test executed: returns correct notification is call is ok\n',
    '2021-02-18T23:01:02.250Z workers [wk80a] Test executed: catches error and returns an empty array when call fails\n',
    '2021-02-18T23:01:02.250Z workers [wk80a] Test executed: catches error and returns an empty array when no body returned\n',
    '2021-02-18T23:01:02.251Z workers [wk80a] Test executed: replies with cached data\n',
    '2021-02-18T23:01:02.251Z workers [wk80a] Test executed: does not make request\n',
    '2021-02-18T23:01:02.252Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:02.253Z workers [wk80a] Test executed: uses http server for production\n',
    '2021-02-18T23:01:02.254Z workers [wk80a] Test executed: uses https server for development\n',
    '2021-02-18T23:01:02.255Z workers [wk80a] Test executed: calls "yarn ssl" if cert is missing\n',
    '2021-02-18T23:01:02.256Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:02.256Z workers [wk80a] Test executed: returns content for one key\n',
    '2021-02-18T23:01:02.257Z workers [wk80a] Test executed: returns content for mutliple keys\n',
    '2021-02-18T23:01:02.257Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:02.258Z workers [wk80a] Test executed: calls createLogger with correct params\n',
    '2021-02-18T23:01:02.258Z workers [wk80a] Test executed: uses application_name\n',
    '2021-02-18T23:01:02.258Z workers [wk80a] Test executed: uses masthead-v3 whden appInfo is null\n',
    '2021-02-18T23:01:02.259Z workers [wk80a] Test executed: uses masthead-v3 whden appInfo is undefined\n',
    '2021-02-18T23:01:02.260Z workers [wk80a] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:02.261Z workers [wk80a] Test executed: returns false when flag is off and incorrect section\n',
    '2021-02-18T23:01:02.261Z workers [wk80a] Test executed: returns false when flag is off and correct section\n',
    '2021-02-18T23:01:02.261Z workers [wk80a] Test executed: returns true when flag is on and correct section\n',
    '2021-02-18T23:01:02.296Z workers [wk80a] Run 40 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:02.297Z workers Jest Test Run Complete: 2021-02-18T23:01:02.235Z\n',
    '2021-02-18T23:01:02.357Z workers [wk80a] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:03.082Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.860Z\n',
    '2021-02-18T23:01:03.083Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.084Z workers [30hrd] Test executed: renders correctly with no Logo\n',
    '2021-02-18T23:01:03.084Z workers [30hrd] Test executed: renders correctly with Logo\n',
    '2021-02-18T23:01:03.085Z workers [30hrd] Test executed: renders correctly with no Nav\n',
    '2021-02-18T23:01:03.085Z workers [30hrd] Test executed: renders correctly with Nav\n',
    '2021-02-18T23:01:03.085Z workers [30hrd] Test executed: renders correctly with no User\n',
    '2021-02-18T23:01:03.087Z workers [30hrd] Test executed: renders correctly with User\n',
    '2021-02-18T23:01:03.087Z workers [30hrd] Test executed: renders correctly with no SkipLinks\n',
    '2021-02-18T23:01:03.088Z workers [30hrd] Test executed: renders correctly with SkipLinks\n',
    '2021-02-18T23:01:03.089Z workers [30hrd] Test executed: adds the class to show the burger nav when the burger is clicked\n',
    '2021-02-18T23:01:03.089Z workers [30hrd] Test executed: removes the class to show the burger nav when the burger is clicked twice\n',
    '2021-02-18T23:01:03.090Z workers [30hrd] Test executed: pressing the close menu button closes the burger menu and refocuses on the toggle\n',
    '2021-02-18T23:01:03.090Z workers [30hrd] Test executed: renders the sign in link when the user is not signed in\n',
    '2021-02-18T23:01:03.091Z workers [30hrd] Test executed: renders the User Menu Toggle when the user is signed in\n',
    '2021-02-18T23:01:03.091Z workers [30hrd] Test executed: pressing the User Menu Toggle opens the User Menu when it is closed\n',
    '2021-02-18T23:01:03.092Z workers [30hrd] Test executed: pressing the User Menu Toggle closes the User Menu when it is open\n',
    '2021-02-18T23:01:03.092Z workers [30hrd] Test executed: pressing the Close User Menu button closes the User Menu and refocuses on the User Menu Toggle\n',
    '2021-02-18T23:01:03.092Z workers [30hrd] Test executed: renders with content\n',
    '2021-02-18T23:01:03.093Z workers [30hrd] Test executed: uses gb content\n',
    '2021-02-18T23:01:03.093Z workers [30hrd] Test executed: uses ie content\n',
    '2021-02-18T23:01:03.094Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.095Z workers [30hrd] Test executed: saves the new notifications to the store\n',
    '2021-02-18T23:01:03.095Z workers [30hrd] Test executed: saves the new notifications to the popout store\n',
    '2021-02-18T23:01:03.096Z workers [30hrd] Test executed: sets the store\n',
    '2021-02-18T23:01:03.157Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.553Z\n',
    '2021-02-18T23:01:03.190Z workers [ei21d] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.197Z workers [ei21d] Test executed: adds to the store\n',
    '2021-02-18T23:01:03.219Z workers [ei21d] Test executed: requires a unique id\n',
    '2021-02-18T23:01:03.222Z workers [ei21d] Test executed: adds multiple items\n',
    '2021-02-18T23:01:03.338Z workers [ei21d] Test executed: removes the notification from the store\n',
    '2021-02-18T23:01:03.338Z workers [ei21d] Test executed: does nothing if the provided id does not match\n',
    '2021-02-18T23:01:03.339Z workers [ei21d] Test executed: returns the banners\n',
    '2021-02-18T23:01:03.339Z workers [ei21d] Test executed: sets the navItems toggle\n',
    '2021-02-18T23:01:03.339Z workers [ei21d] Test executed: sets headerNavToggles when isBurgerNav is true\n',
    '2021-02-18T23:01:03.340Z workers [ei21d] Test executed: sets the navItems toggle\n',
    '2021-02-18T23:01:03.340Z workers [ei21d] Test executed: sets headerNavToggles when isBurgerNav is true\n',
    '2021-02-18T23:01:03.341Z workers [ei21d] Test executed: produces deprecation error\n',
    '2021-02-18T23:01:03.341Z workers [ei21d] Test executed: produces deprecation error\n',
    '2021-02-18T23:01:03.341Z workers [ei21d] Test executed: calls the user details refresh in the store\n',
    '2021-02-18T23:01:03.342Z workers [ei21d] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.342Z workers [ei21d] Test executed: Correctly transforms notification\n',
    '2021-02-18T23:01:03.343Z workers [ei21d] Test executed: Only returns notifications to show on /home\n',
    '2021-02-18T23:01:03.343Z workers [ei21d] Test executed: updates invalid themes to new format\n',
    '2021-02-18T23:01:03.344Z workers [ei21d] Test executed: adds a rank from theme if one is not provided\n',
    '2021-02-18T23:01:03.344Z workers [ei21d] Test executed: sets all notifications to be dismissible\n',
    '2021-02-18T23:01:03.344Z workers [ei21d] Test executed: uses the old id to set the unique_id on notifications\n',
    '2021-02-18T23:01:03.345Z workers [ei21d] Test executed: sets dismissable to be true when only session_dismissable is true\n',
    '2021-02-18T23:01:03.345Z workers [ei21d] Test executed: with button and is dismissable\n',
    '2021-02-18T23:01:03.346Z workers [ei21d] Test executed: with button and is NOT dismissable\n',
    '2021-02-18T23:01:03.346Z workers [ei21d] Test executed: with link and is dismissable\n',
    '2021-02-18T23:01:03.346Z workers [ei21d] Test executed: with link and is NOT dismissable\n',
    '2021-02-18T23:01:03.348Z workers [ei21d] Test executed: correctly updates notification to consistent format\n',
    '2021-02-18T23:01:03.349Z workers [ei21d] Test executed: when on my_company and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.349Z workers [ei21d] Test executed: when on home and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.349Z workers [ei21d] Test executed: when on shop and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.350Z workers [ei21d] Test executed: when on find_and_watch and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.350Z workers [ei21d] Test executed: when on help_and_support and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.351Z workers [ei21d] Test executed: when on company_products and pop out is set to true for that section popOut should return true\n',
    '2021-02-18T23:01:03.351Z workers [ei21d] Test executed: when on section but popOut section param is false should return popOut as false\n',
    '2021-02-18T23:01:03.351Z workers [ei21d] Test executed: when on section but popOut section param is undefined should return popOut as true\n',
    '2021-02-18T23:01:03.352Z workers [ei21d] Test executed: correctly updates notification to consistent format\n',
    '2021-02-18T23:01:03.353Z workers [ei21d] Test executed: sets rank when notification has no theme\n',
    '2021-02-18T23:01:03.354Z workers [ei21d] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.355Z workers [ei21d] Test executed: has no root route\n',
    '2021-02-18T23:01:03.887Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:03.936Z workers [ei21d] Test executed: has masthead routes\n',
    '2021-02-18T23:01:03.944Z workers [ei21d] Test executed: has preview routes\n',
    '2021-02-18T23:01:03.955Z workers [ei21d] Test executed: serves static content\n',
    '2021-02-18T23:01:03.985Z workers [ei21d] Test executed: uses externalConfig\n',
    '2021-02-18T23:01:04.013Z workers [ei21d] Test executed: should return 200\n',
    '2021-02-18T23:01:04.375Z workers [3ln91] Test executed: renders My account link\n',
    '2021-02-18T23:01:04.376Z workers [3ln91] Test executed: renders Help link\n',
    '2021-02-18T23:01:04.378Z workers [3ln91] Test executed: does not render My account link when config is false for extraLinkOne\n',
    '2021-02-18T23:01:04.384Z workers [3ln91] Test executed: does not render Help link when config is false for extraLinkOne\n',
    '2021-02-18T23:01:04.386Z workers [3ln91] Test executed: renders Chat when status is true\n',
    '2021-02-18T23:01:04.389Z workers [3ln91] Test executed: does not render Chat when status is false\n',
    '2021-02-18T23:01:04.390Z workers [3ln91] Test executed: does not render Chat when config is false\n',
    '2021-02-18T23:01:04.393Z workers [3ln91] Test executed: renders Search\n',
    '2021-02-18T23:01:04.394Z workers [3ln91] Test executed: does not render Search when config is false\n',
    '2021-02-18T23:01:04.400Z workers [3ln91] Test executed: renders Notifications\n',
    '2021-02-18T23:01:04.402Z workers [3ln91] Test executed: does not render Notifications when config is false\n',
    '2021-02-18T23:01:04.403Z workers [3ln91] Test executed: selects the Help nav item based on currentSection\n',
    '2021-02-18T23:01:04.406Z workers [3ln91] Test executed: selects the My Account nav item based on currentSection\n',
    '2021-02-18T23:01:04.408Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.409Z workers [3ln91] Test executed: returns an array with the lowest ranked notifications first\n',
    '2021-02-18T23:01:04.409Z workers [3ln91] Test executed: sorts notifications by critical theme first then rank\n',
    '2021-02-18T23:01:04.410Z workers [3ln91] Test executed: returns notifications not found in storage\n',
    '2021-02-18T23:01:04.410Z workers [3ln91] Test executed: tests if new notification is newer\n',
    '2021-02-18T23:01:04.411Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.412Z workers [3ln91] Test executed: calls isJQueryDefined\n',
    '2021-02-18T23:01:04.412Z workers [3ln91] Test executed: does not call isJQueryDefined\n',
    '2021-02-18T23:01:04.413Z workers [3ln91] Test executed: adds api methods to masthead\n',
    '2021-02-18T23:01:04.417Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.422Z workers [3ln91] Test executed: should correctly resolve\n',
    '2021-02-18T23:01:04.422Z workers [3ln91] Test executed: should correctly resolve even with chunkhashed urls\n',
    '2021-02-18T23:01:04.423Z workers [3ln91] Test executed: should not call send if file does not exist\n',
    '2021-02-18T23:01:04.423Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.424Z workers [3ln91] Test executed: returns true when origin is valid\n',
    '2021-02-18T23:01:04.424Z workers [3ln91] Test executed: returns false when origin is invalid\n',
    '2021-02-18T23:01:04.425Z workers [3ln91] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.425Z workers [3ln91] Test executed: location.reload is called\n',
    '2021-02-18T23:01:04.489Z workers [3ln91] Run 26 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:04.490Z workers Jest Test Run Complete: 2021-02-18T23:01:04.371Z\n',
    '2021-02-18T23:01:04.491Z workers [3ln91] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:04.503Z workers [ei21d] Test executed: should return 500\n',
    '2021-02-18T23:01:04.511Z workers [30hrd] Test executed: calls timeout, resets the store\n',
    '2021-02-18T23:01:04.653Z workers Scheduling Jest Test Run: 2021-02-18T23:00:49.792Z\n',
    '2021-02-18T23:01:04.717Z workers [q7byj] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:04.732Z workers [q7byj] Test executed: to render with the correct number of L1 items\n',
    '2021-02-18T23:01:04.748Z workers [q7byj] Test executed: selects the TV nav item based on currentSection\n',
    '2021-02-18T23:01:04.758Z workers [q7byj] Test executed: selects the Broadband nav item based on currentSection\n',
    '2021-02-18T23:01:04.762Z workers [q7byj] Test executed: add the current-route class to a Level 1 item when the pushstate event fires\n',
    "2021-02-18T23:01:04.767Z workers [q7byj] Test executed: add the current-route class to a Level 2 item & it's parent when the pushstate event fires\n",
    '2021-02-18T23:01:04.775Z workers [q7byj] Test executed: updates the current route when the popstate event fires\n',
    '2021-02-18T23:01:04.791Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.514Z workers [30hrd] Test executed: calls setIconCount\n',
    '2021-02-18T23:01:05.548Z workers [ei21d] Test executed: calls render with the correct path\n',
    '2021-02-18T23:01:05.606Z workers [ei21d] Test executed: calls serve with the correct path\n',
    '2021-02-18T23:01:05.783Z workers [enrai] Test executed: call function on click\n',
    '2021-02-18T23:01:05.784Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.785Z workers [enrai] Test executed: does not render header icon\n',
    '2021-02-18T23:01:05.785Z workers [enrai] Test executed: does not render header text\n',
    '2021-02-18T23:01:05.785Z workers [enrai] Test executed: does not render dismiss button\n',
    '2021-02-18T23:01:05.786Z workers [enrai] Test executed: does not render body description\n',
    '2021-02-18T23:01:05.786Z workers [enrai] Test executed: does not render body link\n',
    '2021-02-18T23:01:05.787Z workers [enrai] Test executed: does not render body sub text\n',
    '2021-02-18T23:01:05.787Z workers [enrai] Test executed: does not render body sub link\n',
    '2021-02-18T23:01:05.788Z workers [enrai] Test executed: does not render body link\n',
    '2021-02-18T23:01:05.788Z workers [enrai] Test executed: does not render body sub text\n',
    '2021-02-18T23:01:05.788Z workers [enrai] Test executed: renders body sub link\n',
    '2021-02-18T23:01:05.789Z workers [enrai] Test executed: renders header icon\n',
    '2021-02-18T23:01:05.789Z workers [enrai] Test executed: renders header text\n',
    '2021-02-18T23:01:05.790Z workers [enrai] Test executed: renders dismiss button\n',
    '2021-02-18T23:01:05.790Z workers [enrai] Test executed: renders body description\n',
    '2021-02-18T23:01:05.791Z workers [enrai] Test executed: renders body link\n',
    '2021-02-18T23:01:05.791Z workers [enrai] Test executed: renders body sub text\n',
    '2021-02-18T23:01:05.791Z workers [enrai] Test executed: renders body sub link\n',
    '2021-02-18T23:01:05.792Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.793Z workers [enrai] Test executed: renders correctly\n',
    '2021-02-18T23:01:05.794Z workers [enrai] Test executed: passes correct props to MastheadSearch\n',
    "2021-02-18T23:01:05.795Z workers [enrai] Test executed: clicking the Search Tray close button closes the 'search' navItem and focuses the Search Toggle button\n",
    '2021-02-18T23:01:05.797Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.797Z workers [enrai] Test executed: returns data when optimizely server is reachable\n',
    '2021-02-18T23:01:05.798Z workers [enrai] Test executed: throws an error when optimizely server is unreachable\n',
    '2021-02-18T23:01:05.798Z workers [enrai] Test executed: sets the cache\n',
    '2021-02-18T23:01:05.799Z workers [enrai] Test executed: instantiates optimizely correctly\n',
    '2021-02-18T23:01:05.799Z workers [enrai] Test executed: throws a helpful error\n',
    '2021-02-18T23:01:05.799Z workers [enrai] Test executed: adds optimizely.isFeatureEnabled to the ctx\n',
    '2021-02-18T23:01:05.800Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.800Z workers [enrai] Test executed: returns default when cookie does not exist\n',
    '2021-02-18T23:01:05.801Z workers [enrai] Test executed: returns default status when cookie exists without geo notification status value\n',
    '2021-02-18T23:01:05.801Z workers [enrai] Test executed: returns geo notifcation status when cookie exists with geo notification status value\n',
    '2021-02-18T23:01:05.801Z workers [enrai] Test executed: returns geo notifcation status when cookie exists without country code value\n',
    '2021-02-18T23:01:05.813Z workers [enrai] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:05.814Z workers [enrai] Test executed: is called with the correct options\n',
    '2021-02-18T23:01:05.814Z workers [enrai] Test executed: replies with cached data if it exists\n',
    '2021-02-18T23:01:05.826Z workers [enrai] Test executed: returns a correct user from response if call is ok\n',
    '2021-02-18T23:01:05.830Z workers [enrai] Test executed: catches error and resolves with cookie values when call fails and fakelogins are enabled\n',
    '2021-02-18T23:01:05.830Z workers [enrai] Test executed: combines data when fakelogins are enabled and not all data populated from oogway\n',
    '2021-02-18T23:01:05.830Z workers [enrai] Test executed: catches error and resolves undefined when call fails and fakelogins are not enabled\n',
    '2021-02-18T23:01:05.831Z workers [enrai] Test executed: returns undefined when no token exists\n',
    '2021-02-18T23:01:05.872Z workers [enrai] Run 38 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:05.872Z workers Jest Test Run Complete: 2021-02-18T23:01:05.783Z\n',
    '2021-02-18T23:01:05.874Z workers [enrai] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:06.018Z workers [30hrd] Test executed: does not set notificationsPopOutStore if there are no popouts\n',
    '2021-02-18T23:01:06.019Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.020Z workers [30hrd] Test executed: removes the Vary header\n',
    '2021-02-18T23:01:06.021Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.021Z workers [30hrd] Test executed: removes blacklisted properties\n',
    '2021-02-18T23:01:06.022Z workers [30hrd] Test executed: reshapes the data\n',
    '2021-02-18T23:01:06.022Z workers [30hrd] Test executed: sorts the navigation\n',
    '2021-02-18T23:01:06.022Z workers [30hrd] Test executed: camelcases the keys\n',
    '2021-02-18T23:01:06.023Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.023Z workers [30hrd] Test executed: gets default location hostname\n',
    '2021-02-18T23:01:06.024Z workers [30hrd] Test executed: gets passed hostname\n',
    '2021-02-18T23:01:06.024Z workers [30hrd] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.024Z workers [30hrd] Test executed: returns correctly formatted text\n',
    '2021-02-18T23:01:06.100Z workers [30hrd] Run 33 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:06.101Z workers Jest Test Run Complete: 2021-02-18T23:01:06.017Z\n',
    '2021-02-18T23:01:06.102Z workers [30hrd] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:06.206Z workers [ei21d] Test executed: calls render with the correct path\n',
    '2021-02-18T23:01:06.320Z workers [q7byj] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.321Z workers [q7byj] Test executed: renders\n',
    '2021-02-18T23:01:06.322Z workers [q7byj] Test executed: closes the notifications tray when activated\n',
    '2021-02-18T23:01:06.323Z workers [q7byj] Test executed: renders a heading for mobile views\n',
    '2021-02-18T23:01:06.323Z workers [q7byj] Test executed: adds relevant classes to the notifications tray\n',
    '2021-02-18T23:01:06.329Z workers [q7byj] Test executed: renders the NoNewNotification component\n',
    '2021-02-18T23:01:06.333Z workers [q7byj] Test executed: adds relevant classes to the notifications tray\n',
    '2021-02-18T23:01:06.338Z workers [q7byj] Test executed: renders\n',
    '2021-02-18T23:01:06.343Z workers [q7byj] Test executed: closes the notifications tray when activated\n',
    '2021-02-18T23:01:06.343Z workers [q7byj] Test executed: does not render the pop out accessibility text\n',
    '2021-02-18T23:01:06.344Z workers [q7byj] Test executed: renders the notifications\n',
    '2021-02-18T23:01:06.345Z workers [q7byj] Test executed: adds relevant classes to the notifications tray\n',
    '2021-02-18T23:01:06.345Z workers [q7byj] Test executed: does not render the accessibility close button\n',
    '2021-02-18T23:01:06.345Z workers [q7byj] Test executed: does not render the accessibility text\n',
    '2021-02-18T23:01:06.347Z workers [q7byj] Test executed: renders the pop out accessibility text\n',
    '2021-02-18T23:01:06.347Z workers [q7byj] Test executed: renders the notifications\n',
    '2021-02-18T23:01:06.348Z workers [q7byj] Test executed: adds no new classes to the notifications tray\n',
    '2021-02-18T23:01:06.348Z workers [q7byj] Test executed: does not render a close button for mobile views\n',
    '2021-02-18T23:01:06.348Z workers [q7byj] Test executed: does not render a heading for mobile views\n',
    '2021-02-18T23:01:06.349Z workers [q7byj] Test executed: adds relevant classes to the notifications tray\n',
    '2021-02-18T23:01:06.350Z workers [q7byj] Test executed: adds relevant classes to the notifications tray\n',
    '2021-02-18T23:01:06.351Z workers [q7byj] Test executed: dismisses the correct notification\n',
    '2021-02-18T23:01:06.351Z workers [q7byj] Test executed: when the last of more than one notifications is dismissed\n',
    '2021-02-18T23:01:06.351Z workers [q7byj] Test executed: when the only notification is dismissed\n',
    '2021-02-18T23:01:06.353Z workers [q7byj] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.354Z workers [q7byj] Test executed: calls getUserProfile when companyusertoken supplied\n',
    '2021-02-18T23:01:06.355Z workers [q7byj] Test executed: returns 422 when companyusertoken is not supplied\n',
    '2021-02-18T23:01:06.356Z workers [q7byj] Test executed: returns error when request fails\n',
    '2021-02-18T23:01:06.357Z workers [q7byj] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.357Z workers [q7byj] Test executed: makes content api request when country is provided\n',
    '2021-02-18T23:01:06.358Z workers [q7byj] Test executed: makes content api request when country is not provided or undefined\n',
    '2021-02-18T23:01:06.358Z workers [q7byj] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:06.359Z workers [q7byj] Test executed: returns default when cookie does not exist\n',
    '2021-02-18T23:01:06.359Z workers [q7byj] Test executed: returns default when cookie exists without country code value\n',
    '2021-02-18T23:01:06.361Z workers [q7byj] Test executed: returns country when cookie exists with geo notification status value\n',
    '2021-02-18T23:01:06.361Z workers [q7byj] Test executed: returns country when cookie exists without geo notification status value\n',
    '2021-02-18T23:01:06.401Z workers [q7byj] Run 38 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:06.401Z workers Jest Test Run Complete: 2021-02-18T23:01:06.319Z\n',
    '2021-02-18T23:01:06.403Z workers [q7byj] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:07.484Z workers [ei21d] Test executed: calls serve with the correct path\n',
    '2021-02-18T23:01:07.489Z workers [ei21d] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:07.489Z workers [ei21d] Test executed: throws an error\n',
    '2021-02-18T23:01:07.629Z workers [ei21d] Test executed: returns the context\n',
    '2021-02-18T23:01:07.631Z workers [ei21d] Test executed: formats the content\n',
    '2021-02-18T23:01:07.674Z workers [392rr] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:07.685Z workers [392rr] Test executed: creates the select element\n',
    '2021-02-18T23:01:07.867Z workers [392rr] Test executed: selects United Kingdom by default\n',
    '2021-02-18T23:01:07.869Z workers [392rr] Test executed: selects ROI if /ie is the first part of the path\n',
    '2021-02-18T23:01:07.870Z workers [392rr] Test executed: does not select ROI if ie appears elsewhere in the URL\n',
    '2021-02-18T23:01:07.872Z workers [392rr] Test executed: redirects to alternative url if config url is set on the window\n',
    '2021-02-18T23:01:07.874Z workers [392rr] Test executed: change option to Republic of Ireland\n',
    '2021-02-18T23:01:07.876Z workers [392rr] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:07.877Z workers [392rr] Test executed: defaults to localStorage\n',
    '2021-02-18T23:01:07.878Z workers [392rr] Test executed: returns empty array when no notifications found\n',
    '2021-02-18T23:01:07.879Z workers [392rr] Test executed: returns parsed notifications\n',
    '2021-02-18T23:01:07.879Z workers [392rr] Test executed: sets the correct sessionStorage notifcation\n',
    '2021-02-18T23:01:07.879Z workers [392rr] Test executed: sets the correct localStorage notifcation\n',
    '2021-02-18T23:01:07.880Z workers [392rr] Test executed: normalizes the id to a string\n',
    '2021-02-18T23:01:07.880Z workers [392rr] Test executed: removes the notification from the notificationsStore\n',
    '2021-02-18T23:01:07.881Z workers [392rr] Test executed: sets notificationsPopOutStore when isPopOut is true\n',
    '2021-02-18T23:01:07.881Z workers [392rr] Test executed: calls setIconCount\n',
    '2021-02-18T23:01:07.882Z workers [392rr] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:07.883Z workers [392rr] Test executed: calls window.companyTags.queue.push()\n',
    '2021-02-18T23:01:07.883Z workers [392rr] Test executed: calls window.companyTags.queue.push() with correct params\n',
    '2021-02-18T23:01:07.883Z workers [392rr] Test executed: window.companyTags.queue.push() is not called\n',
    '2021-02-18T23:01:07.885Z workers [392rr] Test executed: calls window.companyTags.queue.push()\n',
    '2021-02-18T23:01:07.885Z workers [392rr] Test executed: calls window.companyTags.queue.push() with correct params\n',
    '2021-02-18T23:01:07.886Z workers [392rr] Test executed: calls window.companyTags.queue.push()\n',
    '2021-02-18T23:01:07.887Z workers [392rr] Test executed: calls window.companyTags.queue.push() with correct params\n',
    '2021-02-18T23:01:07.888Z workers [392rr] Test executed: does not call window.companyTags.queue.push()\n',
    '2021-02-18T23:01:07.890Z workers [392rr] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.319Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.334Z workers [392rr] Test executed: renders the html\n',
    '2021-02-18T23:01:08.360Z workers [kd01q] Test executed: renders correctly\n',
    '2021-02-18T23:01:08.378Z workers [kd01q] Test executed: renders ie link for ROI\n',
    '2021-02-18T23:01:08.386Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.388Z workers [kd01q] Test executed: renders the Notification Icon Count Span\n',
    '2021-02-18T23:01:08.398Z workers [kd01q] Test executed: the text is 9+\n',
    '2021-02-18T23:01:08.401Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.414Z workers [kd01q] Test executed: renders correctly\n',
    '2021-02-18T23:01:08.422Z workers [kd01q] Test executed: has aria attributes to reflect this state\n',
    "2021-02-18T23:01:08.434Z workers [kd01q] Test executed: clicking the Search Icon button changes the navItems 'search' key to be active\n",
    '2021-02-18T23:01:08.445Z workers [392rr] Test executed: adds the class to be used by HideMasthead\n',
    '2021-02-18T23:01:08.451Z workers [392rr] Test executed: valid countries return 200\n',
    '2021-02-18T23:01:08.463Z workers [kd01q] Test executed: has aria attributes to reflect this state\n',
    "2021-02-18T23:01:08.478Z workers [kd01q] Test executed: clicking the Search Icon button changes the navItems 'search' key to not be active\n",
    '2021-02-18T23:01:08.564Z workers [392rr] Test executed: invalid countries return 404\n',
    '2021-02-18T23:01:08.571Z workers [ei21d] Test executed: requests content for the correct country\n',
    '2021-02-18T23:01:08.582Z workers [ei21d] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.583Z workers [ei21d] Test executed: when geo cookie exists\n',
    '2021-02-18T23:01:08.584Z workers [ei21d] Test executed: when geo cookie does not exist, but countryAKA cookie does exist\n',
    '2021-02-18T23:01:08.585Z workers [ei21d] Test executed: when neither cookie exists, falls back to default country code\n',
    '2021-02-18T23:01:08.587Z workers [392rr] Test executed: renders the html\n',
    '2021-02-18T23:01:08.608Z workers [392rr] Test executed: adds the class to be used by HideMasthead\n',
    '2021-02-18T23:01:08.613Z workers [392rr] Test executed: valid countries return 200\n',
    '2021-02-18T23:01:08.644Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.649Z workers [ei21d] Run 53 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:08.649Z workers Jest Test Run Complete: 2021-02-18T23:01:08.570Z\n',
    '2021-02-18T23:01:08.649Z workers [kd01q] Test executed: renders js at resources/js\n',
    '2021-02-18T23:01:08.650Z workers [ei21d] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:08.651Z workers [kd01q] Test executed: renders js at resources/mobile-ready/12/js\n',
    '2021-02-18T23:01:08.652Z workers [kd01q] Test executed: renders meta at resources/css\n',
    '2021-02-18T23:01:08.652Z workers [kd01q] Test executed: renders meta at resources/mobile-ready/css\n',
    '2021-02-18T23:01:08.653Z workers [kd01q] Test executed: renders meta at resources/mobile-ready/12/css\n',
    '2021-02-18T23:01:08.668Z workers [392rr] Test executed: invalid countries return 404\n',
    '2021-02-18T23:01:08.680Z workers [392rr] Test executed: renders meta\n',
    '2021-02-18T23:01:08.689Z workers [392rr] Test executed: contains the toolkit\n',
    '2021-02-18T23:01:08.696Z workers [392rr] Test executed: contains correct FQDN path to js bundle\n',
    '2021-02-18T23:01:08.707Z workers [392rr] Test executed: contains correct FQDN path to css bundle\n',
    '2021-02-18T23:01:08.748Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.759Z workers [4fbyv] Test executed: renders no links if links content is empty\n',
    '2021-02-18T23:01:08.784Z workers [392rr] Test executed: renders preview\n',
    '2021-02-18T23:01:08.795Z workers [392rr] Test executed: renders with gb by default\n',
    '2021-02-18T23:01:08.800Z workers [392rr] Test executed: renders js\n',
    '2021-02-18T23:01:08.808Z workers [392rr] Test executed: renders meta\n',
    '2021-02-18T23:01:08.815Z workers [392rr] Test executed: renders js\n',
    '2021-02-18T23:01:08.815Z workers [4fbyv] Test executed: creates the correct number of links\n',
    '2021-02-18T23:01:08.816Z workers [4fbyv] Test executed: renders the Privacy options with onclick func\n',
    '2021-02-18T23:01:08.818Z workers [4fbyv] Test executed: only renders the onclick func for "privacy-options" url\n',
    '2021-02-18T23:01:08.821Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.825Z workers [392rr] Test executed: renders meta\n',
    '2021-02-18T23:01:08.826Z workers [4fbyv] Test executed: renders Notification Toggle Button\n',
    '2021-02-18T23:01:08.828Z workers [4fbyv] Test executed: renders Notification Toggle Button Icon\n',
    '2021-02-18T23:01:08.830Z workers [4fbyv] Test executed: updates the ARIA properties\n',
    "2021-02-18T23:01:08.831Z workers [392rr] Test executed: doesn't contain the toolkit\n",
    '2021-02-18T23:01:08.832Z workers [4fbyv] Test executed: updates the ARIA properties\n',
    '2021-02-18T23:01:08.834Z workers [4fbyv] Test executed: sets notificationsPopOutStore to empty array\n',
    '2021-02-18T23:01:08.835Z workers [4fbyv] Test executed: does not render NotificationIconCount Component\n',
    '2021-02-18T23:01:08.842Z workers [4fbyv] Test executed: renders NotificationIconCount Component\n',
    '2021-02-18T23:01:08.853Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:08.854Z workers [4fbyv] Test executed: renders correctly\n',
    '2021-02-18T23:01:08.855Z workers [4fbyv] Test executed: renders redirect links\n',
    '2021-02-18T23:01:08.857Z workers [4fbyv] Test executed: updates the link for client side routing\n',
    '2021-02-18T23:01:08.857Z workers [4fbyv] Test executed: renders correctly\n',
    '2021-02-18T23:01:08.860Z workers [4fbyv] Test executed: clears localStorage[mast-user-profile] when sign out is called\n',
    '2021-02-18T23:01:08.861Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.020Z workers [kd01q] Test executed: renders the footer html at /footer/full\n',
    '2021-02-18T23:01:09.043Z workers [kd01q] Test executed: renders the footer html at /footer/lite\n',
    '2021-02-18T23:01:09.116Z workers [kd01q] Test executed: renders the header html\n',
    '2021-02-18T23:01:09.118Z workers [kd01q] Test executed: valid countries return 200\n',
    '2021-02-18T23:01:09.258Z workers [392rr] Test executed: renders js\n',
    '2021-02-18T23:01:09.265Z workers [392rr] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.267Z workers [392rr] Test executed: sets cookie\n',
    '2021-02-18T23:01:09.270Z workers [392rr] Test executed: sets cookie with expiresIn\n',
    '2021-02-18T23:01:09.320Z workers [392rr] Run 45 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:09.321Z workers Jest Test Run Complete: 2021-02-18T23:01:09.253Z\n',
    '2021-02-18T23:01:09.322Z workers [392rr] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:09.806Z workers [4fbyv] Test executed: renders preview builder\n',
    '2021-02-18T23:01:09.822Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.823Z workers [4fbyv] Test executed: returns key value\n',
    '2021-02-18T23:01:09.823Z workers [4fbyv] Test executed: returns default when key does not exist\n',
    '2021-02-18T23:01:09.824Z workers [4fbyv] Test executed: returns key value as an array\n',
    '2021-02-18T23:01:09.825Z workers [4fbyv] Test executed: splits and returns CVS as array\n',
    '2021-02-18T23:01:09.825Z workers [4fbyv] Test executed: returns the default when key does not exist\n',
    '2021-02-18T23:01:09.826Z workers [4fbyv] Test executed: returns key value of false\n',
    '2021-02-18T23:01:09.827Z workers [4fbyv] Test executed: returns key value of true\n',
    '2021-02-18T23:01:09.828Z workers [4fbyv] Test executed: returns default true when key does not exist\n',
    '2021-02-18T23:01:09.828Z workers [4fbyv] Test executed: returns default false when key does not exist\n',
    '2021-02-18T23:01:09.829Z workers [4fbyv] Test executed: returns parsed data\n',
    '2021-02-18T23:01:09.829Z workers [4fbyv] Test executed: returns an empty object when key does not exist and no default used\n',
    '2021-02-18T23:01:09.830Z workers [4fbyv] Test executed: returns an default object when key does not exist\n',
    '2021-02-18T23:01:09.831Z workers [4fbyv] Test executed: returns key value as a number\n',
    '2021-02-18T23:01:09.833Z workers [4fbyv] Test executed: returns key value as a number when zero\n',
    '2021-02-18T23:01:09.834Z workers [4fbyv] Test executed: returns an default when key does not exist\n',
    '2021-02-18T23:01:09.834Z workers [4fbyv] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.835Z workers [4fbyv] Test executed: defines window.companyTags\n',
    '2021-02-18T23:01:09.835Z workers [4fbyv] Test executed: it creates an initialised window.companyTags.queue event\n',
    '2021-02-18T23:01:09.835Z workers [4fbyv] Test executed: returns window.companyTags.queue without changes\n',
    '2021-02-18T23:01:09.873Z workers [kd01q] Test executed: invalid countries return 404\n',
    '2021-02-18T23:01:09.899Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.902Z workers [kd01q] Test executed: returns null for empty cache\n',
    '2021-02-18T23:01:09.903Z workers [kd01q] Test executed: returns the value stored in the cache\n',
    '2021-02-18T23:01:09.904Z workers [kd01q] Test executed: returns the value before the cache expires\n',
    '2021-02-18T23:01:09.905Z workers [4fbyv] Run 35 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:09.907Z workers Jest Test Run Complete: 2021-02-18T23:01:09.816Z\n',
    '2021-02-18T23:01:09.907Z workers [kd01q] Test executed: overwrites the cache\n',
    '2021-02-18T23:01:09.908Z workers [kd01q] Test executed: returns null when the cache expires\n',
    '2021-02-18T23:01:09.909Z workers [kd01q] Loaded unknown number of test(s)\n',
    '2021-02-18T23:01:09.910Z workers [4fbyv] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:09.910Z workers [kd01q] Test executed: sorts items based on position key by default\n',
    '2021-02-18T23:01:09.911Z workers [kd01q] Test executed: sorts items based on passed key\n',
    '2021-02-18T23:01:09.911Z workers [kd01q] Test executed: return empty array when no items are passed\n',
    '2021-02-18T23:01:09.966Z workers [kd01q] Run 27 test(s), skipped 0 test(s)\n',
    '2021-02-18T23:01:09.966Z workers Jest Test Run Complete: 2021-02-18T23:01:09.884Z\n',
    '2021-02-18T23:01:09.968Z workers [kd01q] Sandbox is responsive, closing it\n',
    '2021-02-18T23:01:09.968Z workers Merging parallel test run results\n',
    '2021-02-18T23:01:09.994Z project Test run finished\n',
    '2021-02-18T23:01:09.995Z project Processed console.log entries\n',
    '2021-02-18T23:01:09.996Z project Processed loading sequences\n',
    '2021-02-18T23:01:10.009Z project Processed executed tests\n',
    '2021-02-18T23:01:10.041Z project Processed code coverage\n',
    '2021-02-18T23:01:10.273Z project Test run result processed and sent to IDE\n'
  ]
}
smcenlly commented 3 years ago

The behavior that you're seeing indicates that there's an issue with how your transpiled source code maps to back to your original source code.

This may be an issue in Wallaby but I suspect it's related to something in your configuration leading to bad source maps.

Would you be able to send us your:

This should give us enough information to try and reproduce your setup and see if we have the same problem. Alternatively, if you're able, it would be great if you could create a sample repo for us that has the same problem.

trinode commented 3 years ago

jest-config.js

module.exports = {
  roots: ["<rootDir>"],
  collectCoverageFrom: ["src/**/*", "!**/test/**/*", "!**/*.snap", "!**/main.js", "!src/ts/**/*", "!src/server/debug/**/*"],
  moduleFileExtensions: ["js", "svelte", "ts"],
  setupFiles: ["<rootDir>/test/setup-tests.js"],
  setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
  testMatch: ["**/**/*.spec.*", "!**/*.snap"],
  transform: {
    "^.+\\.js$": "babel-jest",
    "^.+\\.svelte$": "jest-transform-svelte",
    "^.+\\.svg$": "<rootDir>/test/svg-transform/index.js",
    "^.+\\.tsx?$": "ts-jest"
  },
  moduleNameMapper: {
    "^@/components(.*)$": "<rootDir>/src/components$1",
    "^@/svg(.*)$": "<rootDir>/src/svg$1",
    "^@/utils(.*)$": "<rootDir>/src/utils$1",
    "^@/src(.*)$": "<rootDir>/src/$1",
    "\\.(css|scss)$": '<rootDir>/test/mock-style.js'
  },
  testResultsProcessor: "jest-teamcity-reporter"
};

tsconfig.json

{
  "version": "3.9.5",
  "compilerOptions": {
      "outDir": "./dist/server",
      "lib": ["es5", "es6", "dom"],
      "target": "ES6",
      "module": "commonjs",
      "moduleResolution": "node",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "esModuleInterop": true,
      "noImplicitAny": true,
      "noImplicitReturns": true,
      "resolveJsonModule": true,
      "allowJs": true,
      "inlineSourceMap": true
  },
  "include": ["./src/server/**/*"],
  "exclude": ["./node_modules", "./src/ts", "**/*.spec.ts"],
}

babel.config.js

module.exports = api => {
  api.cache(true);
  if (process.env.NODE_ENV === "test") {
    return {
      presets: [
        [
          "@babel/preset-env",
          {
            targets: {
              node: "current",
              esmodules: true
            }
          }
        ]
      ]
    };
  }

  return {
    presets: [
      [
        "@babel/preset-env",
        {
          targets: {
            browsers: ["ie >= 11"]
          },
          modules: false,
          spec: true,
          forceAllTransforms: true,
          useBuiltIns: "usage",
          corejs: 3
        }
      ]
    ]
  };
};
smcenlly commented 3 years ago

We have created a sample repository with the necessary dependencies and your configuration and everything is working for us. Could you please try cloning and running the sample repo that we created to confirm that you're not getting the links on the wrong lines?

The only key difference in our configuration and yours that we think could potentially cause a problem is the setupFiles in your jest configuration:

jest.config.js

...
- setupFiles: ["<rootDir>/test/setup-tests.js"],
...

If the sample repo that we provided is working for you, please migrate parts of your code from your project to the sample to isolate the problem. Alternatively, you may provide us with a sample repo that has the problem and we can investigate what's going on for you.

smcenlly commented 3 years ago

Closing this issue as we haven't heard back.