wallabyjs / public

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

Exclusive test run not working correctly #3036

Closed aubrey-ford-nutrien closed 2 years ago

aubrey-ford-nutrien commented 2 years ago

Issue description or question

Wallaby diagnostics report

Using Webstorm

When right clicking a file and selecting "Start Exclusive Test Run" it runs other test files in addition to the one selected. I have tried "Reset Test Filter" and "Reset Wallaby Cache" but they don't help.

I'm using a manual config, looks like this:

image

{
  editorVersion: 'WebStorm 2022.1.4',
  pluginVersion: '1.0.250',
  editorType: 'IntelliJ',
  osVersion: 'darwin 20.6.0',
  nodeVersion: 'v14.19.1',
  coreVersion: '1.0.1307',
  checksum: 'ODA3MjYzODZlYTI2M2Q1MmU0NzMxYzkyNjBmODA4ZDEsMTY3ODU3OTIwMDAwMCww',
  config: {
    tests: [
      { pattern: 'src/**/*.spec.js*', ignore: false, trigger: true, load: true, test: true, order: 3 },
      { pattern: 'src/store/reducers/*test.js', ignore: false, trigger: true, load: true, test: true, order: 4 },
      { pattern: 'src/store/selectors/*test.js', ignore: false, trigger: true, load: true, test: true, order: 5 },
      { pattern: 'src/store/thunks/*test.js', ignore: false, trigger: true, load: true, test: true, order: 6 }
    ],
    files: [
      { pattern: 'src/**/!(*.test|*.spec|*.stories).js*', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: 'src/__mocks__/ol/**/*.js*', instrument: false, ignore: false, trigger: true, load: true, order: 2 }
    ],
    env: {
      params: { env: '--maxWorkers=50%' },
      type: 'node',
      runner: '<homeDir>/.nvm/versions/node/v14.19.1/bin/node',
      viewportSize: { width: 800, height: 600 },
      options: { width: 800, height: 600 },
      bundle: true
    },
    diagnostics: {
      jest: {
        config: {
          configs: [
            {
              automock: false,
              browser: false,
              cache: true,
              cacheDirectory: '/private/var/folders/d3/n3lk9np94njcknzt_5yhk14r0000gn/T/jest_dx',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '/node_modules/' ],
              cwd: '<homeDir>/workspace/agrible-platform/packages/agrible-frontend',
              dependencyExtractor: null,
              detectLeaks: undefined,
              detectOpenHandles: undefined,
              displayName: undefined,
              errorOnDeprecated: false,
              extraGlobals: undefined,
              filter: null,
              forceCoverageMatch: [],
              globalSetup: null,
              globalTeardown: null,
              globals: {},
              haste: { computeSha1: false, providesModuleNodeModules: [], throwOnModuleCollision: false },
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [
                'web.js',  'js',
                'web.ts',  'ts',
                'web.tsx', 'tsx',
                'json',    'web.jsx',
                'jsx',     'node'
              ],
              moduleLoader: undefined,
              moduleNameMapper: [ [ '^react-native$', 'react-native-web' ], [ '^.+\\.module\\.(css|sass|scss)$', 'identity-obj-proxy' ] ],
              modulePathIgnorePatterns: [],
              modulePaths: [ '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/src' ],
              name: '227b9599df267c0364d1beb650339f5b',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: null,
              restoreMocks: false,
              rootDir: '<homeDir>/workspace/agrible-platform/packages/agrible-frontend',
              roots: [ '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/src' ],
              runner: 'jest-runner',
              setupFiles: [ '<homeDir>/workspace/agrible-platform/node_modules/react-app-polyfill/jsdom.js' ],
              setupFilesAfterEnv: [ '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/src/setupTests.js' ],
              skipFilter: false,
              skipNodeResolution: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [],
              testEnvironment: '<homeDir>/workspace/agrible-platform/node_modules/jest-environment-jsdom-fourteen/lib/index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [
                '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/src/**/__tests__/**/*.{js,jsx,ts,tsx}',
                '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/src/**/*.{spec,test}.{js,jsx,ts,tsx}'
              ],
              testPathIgnorePatterns: [ '/node_modules/' ],
              testRegex: [],
              testRunner: '<homeDir>/workspace/agrible-platform/node_modules/jest-jasmine2/build/index.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [
                [ '^.+\\.(js|jsx|ts|tsx)$', '<homeDir>/workspace/agrible-platform/node_modules/react-scripts/config/jest/babelTransform.js' ],
                [ '^.+\\.css$', '<homeDir>/workspace/agrible-platform/node_modules/react-scripts/config/jest/cssTransform.js' ],
                [ '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)', '<homeDir>/workspace/agrible-platform/node_modules/react-scripts/config/jest/fileTransform.js' ]
              ],
              transformIgnorePatterns: [ '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$', '^.+\\.module\\.(css|sass|scss)$' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: [ 'src/**', '!src/helpers/entities.mock.js', '!**/*.json', '!**/*.stories.js' ],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/coverage',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: null,
            detectLeaks: undefined,
            detectOpenHandles: undefined,
            enabledTestsMap: undefined,
            errorOnDeprecated: false,
            expand: false,
            extraGlobals: undefined,
            filter: null,
            findRelatedTests: undefined,
            forceExit: undefined,
            globalSetup: null,
            globalTeardown: null,
            json: false,
            lastCommit: undefined,
            listTests: undefined,
            logHeapUsage: undefined,
            maxConcurrency: 5,
            maxWorkers: 15,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: undefined,
            onlyFailures: undefined,
            outputFile: undefined,
            passWithNoTests: undefined,
            projects: null,
            replname: undefined,
            reporters: undefined,
            rootDir: '<homeDir>/workspace/agrible-platform/packages/agrible-frontend',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: null,
            testSequencer: '<homeDir>/workspace/agrible-platform/node_modules/@jest/test-sequencer/build/index.js',
            testTimeout: undefined,
            updateSnapshot: 'new',
            useStderr: false,
            verbose: null,
            watch: false,
            watchAll: undefined,
            watchPlugins: [
              { config: {}, path: '<homeDir>/workspace/agrible-platform/node_modules/jest-watch-typeahead/filename.js' },
              { config: {}, path: '<homeDir>/workspace/agrible-platform/node_modules/jest-watch-typeahead/testname.js' }
            ],
            watchman: true
          },
          hasDeprecationWarnings: false,
          wallaby: {
            roots: [ 'src' ],
            watchPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/', '/private/var/folders/d3/n3lk9np94njcknzt_5yhk14r0000gn/T/jest_dx', '\\./coverage' ],
            testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/', '/private/var/folders/d3/n3lk9np94njcknzt_5yhk14r0000gn/T/jest_dx', '\\./coverage' ],
            testMatch: [ 'src/**/__tests__/**/*.{js,jsx,ts,tsx}', 'src/**/*.{spec,test}.{js,jsx,ts,tsx}' ],
            testRegex: []
          }
        }
      }
    },
    filesWithCoverageCalculated: [ 'src/**', '!src/helpers/entities.mock.js', '!**/*.json', '!**/*.stories.js' ],
    filesWithNoCoverageCalculated: [],
    globalSetup: false,
    testFramework: { version: 'jest@24.8.0', configurator: 'jest@24.8.0', reporter: 'jest@24.8.0', starter: 'jest@24.8.0', autoDetected: true },
    micromatch: true,
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    smartStart: [
      { test: true, source: false, path: 'src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.spec.js', startMode: 'always' },
      { test: true, source: false, pattern: '**/*', startMode: 'open' },
      { test: false, source: true, pattern: '**/*', startMode: 'edit' }
    ],
    logLimits: { inline: { depth: 5, elements: 5000 }, values: { default: { stringLength: 200 }, autoExpand: { elements: 5000, stringLength: 8192, depth: 10 } } },
    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: true,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: 'process.env.DEBUG_PRINT_LIMIT = 100000\n' +
      '\n' +
      'module.exports = () => ({\n' +
      '  autoDetect: true,\n' +
      '  // reportConsoleErrorAsError: true,\n' +
      '  tests: [\n' +
      "    'src/**/*.spec.js*',\n" +
      "    'src/store/reducers/*test.js',\n" +
      "    'src/store/selectors/*test.js',\n" +
      "    'src/store/thunks/*test.js'\n" +
      '  ],\n' +
      '  files: [\n' +
      "    'src/**/!(*.test|*.spec|*.stories).js*',\n" +
      "    { pattern: 'src/__mocks__/ol/**/*.js*', instrument: false }\n" +
      '  ],\n' +
      '  env: {\n' +
      '    params: {\n' +
      "      env: '--maxWorkers=50%'\n" +
      '    }\n' +
      '  }\n' +
      '})\n',
    testLocations: [
      'src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.spec.js',
      'src/store/reducers/farmTree.test.js',
      'src/pages/CreatePlan/CreatePlan.spec.jsx',
      'src/pages/CreatePlan/components/CreatePlanRightContent/CroppingSeasonInfo/CroppingSeasonInfo.spec.js',
      'src/pages/BuildRotations/components/CroppingSeasonInfo/CroppingSeasonInfo.spec.js',
      'src/components/CroppingSeasonCardList/CroppingSeasonCardList.spec.js'
    ]
  },
  packageJSON: {
    dependencies: {
      '@babel/runtime-corejs3': '^7.13.17',
      '@date-io/date-fns': '^1.3.13',
      '@material-ui/core': '4.12.4',
      '@material-ui/icons': '4.11.2',
      '@material-ui/system': '^4.9.3',
      '@n8tb1t/use-scroll-position': '^1.0.43',
      '@nutrien/blend-calculator': '4.0.0',
      '@nutrien/bonsai-core': '0.349.0',
      '@nutrien/bonsai-hooks': '0.21.0',
      '@nutrien/bonsai-icons': '0.35.0',
      '@nutrien/bonsai-theme': '0.47.0',
      '@nutrien/farm-tree-navigation': '2.8.0',
      '@nutrien/geospatial': '5.23.0',
      '@nutrien/hub-analytics': '0.35.2',
      '@nutrien/hub-api-clients': '2.1.32',
      '@nutrien/hub-auth': '3.0.1',
      '@nutrien/hub-config': '4.1.0',
      '@nutrien/hub-elementary-components': '3.0.2',
      '@nutrien/hub-field-planning-utils': '1.8.2',
      '@nutrien/hub-hooks': '3.1.1',
      '@nutrien/hub-i18n': '3.0.1',
      '@nutrien/hub-map': '4.0.0',
      '@nutrien/hub-organization-context': '1.10.8',
      '@nutrien/hub-product-drawer': '3.0.2',
      '@nutrien/hub-routing': '0.14.2',
      '@nutrien/hub-shared': '5.1.1',
      '@nutrien/hub-sustainability-dashboard': '3.0.0',
      '@nutrien/hub-types': '2.30.1',
      '@nutrien/uet-lab': '1.14.0',
      '@nutrien/uet-react': '1.14.0',
      '@nutrien/uet-theme': '1.9.0',
      '@nutrien/weather-story': '5.0.0',
      '@react-native-async-storage/async-storage': '^1.15.5',
      '@react-navigation/native': '5.9.8',
      '@sentry/browser': '^6.3.0',
      '@turf/bbox': '^6.3.0',
      'autosuggest-highlight': '^3.1.1',
      classnames: '2.3.1',
      'core-js': '^3.4.8',
      'cross-env': '^6.0.3',
      d3: '^3.5.12',
      'date-fns': '^2.9.0',
      'expo-app-auth': '11.1.0',
      'expo-device': '4.1.1',
      'expo-file-system': '13.1.3',
      'expo-firebase-analytics': '~6.0.0',
      'expo-font': '10.0.4',
      'expo-linking': '3.0.0',
      'expo-secure-store': '11.1.0',
      'expo-sharing': '10.1.1',
      graphql: '^15.5.1',
      'graphql-hooks': '5.11.4',
      'graphql-hooks-memcache': '^1.3.1',
      i18next: '21.6.16',
      'i18next-browser-languagedetector': '^5.0.1',
      'i18next-xhr-backend': '^3.2.2',
      'launchdarkly-react-client-sdk': '^2.20.2',
      localforage: '^1.7.3',
      lodash: '^4.17.15',
      'merge-ranges': '^1.0.2',
      'node-sass': '^4.14.1',
      ol: '6.14.1',
      qs: '^6.9.1',
      react: '^16.12.0',
      'react-dom': '^16.12.0',
      'react-i18next': '^11.2.5',
      'react-is': '^16.13.1',
      'react-native-gesture-handler': '2.2.0',
      'react-native-reanimated': '2.3.1',
      'react-native-safe-area-context': '^3.2.0',
      'react-native-screens': '^3.10.2',
      'react-native-svg': '^12.1.1',
      'react-native-tab-view': '^3.0.1',
      'react-native-vector-icons': '8.1.0',
      'react-native-web': '^0.17.1',
      'react-native-webview': '11.17.2',
      'react-redux': '^7.1.3',
      'react-router-dom': '^5.1.2',
      'react-router-prop-types': '^1.0.4',
      'react-virtualized': '9.22.3',
      'react-waypoint': '^9.0.2',
      redux: '^4.0.4',
      'redux-thunk': '^2.3.0',
      'regenerator-runtime': '^0.13.3',
      reselect: '^4.0.0',
      'styled-components': '^4.4.1',
      'tiny-invariant': '^1.0.6',
      'whatwg-fetch': '^3.0.0',
      yup: '^0.27.0'
    },
    devDependencies: {
      '@apollo/client': '^3.3.20',
      '@babel/cli': '^7.8.4',
      '@babel/core': '^7.8.7',
      '@babel/plugin-proposal-class-properties': '^7.14.5',
      '@babel/plugin-transform-runtime': '^7.13.15',
      '@babel/preset-env': '^7.9.0',
      '@expo/vector-icons': '^12.0.5',
      '@hot-loader/react-dom': '^16.13.0',
      '@storybook/addon-a11y': '^5.3.7',
      '@storybook/addon-actions': '^5.3.7',
      '@storybook/addon-docs': '^5.3.7',
      '@storybook/addon-knobs': '^5.3.7',
      '@storybook/addon-links': '^5.3.7',
      '@storybook/addon-options': '^5.3.7',
      '@storybook/addon-storyshots': '^5.3.7',
      '@storybook/addon-viewport': '^5.3.7',
      '@storybook/addons': '^5.3.7',
      '@storybook/react': '^5.3.7',
      '@testing-library/jest-dom': '4.2.4',
      '@testing-library/react': '9.4.0',
      '@testing-library/react-hooks': '3.2.1',
      '@unimodules/core': '7.2.0',
      '@unimodules/react-native-adapter': '6.5.0',
      'babel-plugin-module-resolver': '^4.1.0',
      'browserstack-local': '^1.4.5',
      'customize-cra': '^1.0.0',
      dotenv: '^8.2.0',
      eslint: '^6.6.0',
      'eslint-config-prettier': '^6.7.0',
      'eslint-config-prettier-standard': '^3.0.1',
      'eslint-config-standard': '^14.1.0',
      'eslint-plugin-import': '^2.20.1',
      'eslint-plugin-jest': '^22.2.1',
      'eslint-plugin-node': '^10.0.0',
      'eslint-plugin-prettier': '^3.1.1',
      'eslint-plugin-promise': '^4.2.1',
      'eslint-plugin-react': '^7.28.0',
      'eslint-plugin-standard': '^4.0.1',
      'eslint-plugin-unused-imports': '^1.1.5',
      faker: '^4.1.0',
      firebase: '^9.6.2',
      formik: '^2.1.3',
      'jest-canvas-mock': '^2.2.0',
      'jest-sonar-reporter': '2.0.0',
      'jest-specific-snapshot': '^2.0.0',
      'jest-styled-components': '^6.3.4',
      'jest-webgl-canvas-mock': '^0.2.3',
      'json-loader': '^0.5.7',
      lighthouse: '^5.6.0',
      'lint-staged': '^9.4.3',
      'metro-react-native-babel-preset': '^0.66.0',
      nightwatch: '^1.3.5',
      nock: '^11.7.0',
      prettier: '^1.19.1',
      'prettier-config-standard': '^1.0.1',
      'pretty-quick': '^2.0.1',
      'react-app-rewire-hot-loader': '^2.0.1',
      'react-app-rewired': '^2.1.5',
      'react-hot-loader': '^4.12.20',
      'react-native-ratings': '^8.1.0',
      'react-scripts': '3.4.0',
      'react-test-renderer': '^16.12.0',
      'redux-mock-store': '^1.5.4',
      'require-context.macro': '^1.2.2',
      'serve-handler': '^6.1.2',
      'storybook-react-router': '^1.0.8',
      'storybook-readme': '^5.0.8',
      'timezone-mock': '^1.1.0',
      'url-loader': '4.1.1'
    }
  },
  fs: { numberOfFiles: 2467 },
  debug: [
    '2022-07-29T14:44:55.231Z angular/cli config Angular CLI not found.\n',
    '2022-07-29T14:44:55.372Z jest/config Detected Jest.\n',
    '2022-07-29T14:44:55.373Z jest/config Configured Jest.\n',
    '2022-07-29T14:44:55.374Z project Wallaby Node version: v14.19.1\n',
    '2022-07-29T14:44:55.374Z project Wallaby config: <homeDir>/workspace/agrible-platform/packages/agrible-frontend/wallaby.js\n',
    '2022-07-29T14:44:56.093Z project File cache: <homeDir>/Library/Caches/JetBrains/WebStorm2022.1/wallaby/projects/21beb9684287bfce\n',
    '2022-07-29T14:44:56.169Z uiService Listening port 51235\n',
    '2022-07-29T14:44:56.170Z project package.json file change detected, invalidating local cache\n',
    '2022-07-29T14:44:56.357Z workers Parallelism for initial run: 14, for regular run: 7\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #0\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #1\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #2\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #3\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #4\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #5\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #6\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #7\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #8\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #9\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #10\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #11\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #12\n',
    '2022-07-29T14:44:56.357Z workers Starting run worker instance #13\n',
    '2022-07-29T14:44:56.358Z workers Web server is listening at 63235\n',
    '2022-07-29T14:44:56.358Z project File cache requires some updates, waiting required files from IDE\n',
    '2022-07-29T14:44:56.710Z workers Started run worker instance (delayed) #0\n',
    '2022-07-29T14:44:56.722Z workers Started run worker instance (delayed) #1\n',
    '2022-07-29T14:44:56.722Z workers Started run worker instance (delayed) #2\n',
    '2022-07-29T14:44:56.738Z workers Started run worker instance (delayed) #3\n',
    '2022-07-29T14:44:56.744Z workers Started run worker instance (delayed) #4\n',
    '2022-07-29T14:44:56.750Z workers Started run worker instance (delayed) #5\n',
    '2022-07-29T14:44:56.750Z workers Started run worker instance (delayed) #6\n',
    '2022-07-29T14:44:56.755Z workers Started run worker instance (delayed) #7\n',
    '2022-07-29T14:44:56.756Z workers Started run worker instance (delayed) #8\n',
    '2022-07-29T14:44:56.759Z workers Started run worker instance (delayed) #9\n',
    '2022-07-29T14:44:56.759Z workers Started run worker instance (delayed) #10\n',
    '2022-07-29T14:44:56.760Z workers Started run worker instance (delayed) #11\n',
    '2022-07-29T14:44:56.763Z workers Started run worker instance (delayed) #13\n',
    '2022-07-29T14:44:56.766Z workers Started run worker instance (delayed) #12\n',
    '2022-07-29T14:44:56.782Z project Stopping process pool\n',
    '2022-07-29T14:44:56.784Z project Test run started; run priority: 3\n',
    '2022-07-29T14:44:56.790Z project Running all tests\n',
    '2022-07-29T14:44:56.820Z workers Starting test run, priority: 3\n',
    '2022-07-29T14:44:56.820Z nodeRunner Starting sandbox [worker #0, session #u60d9]\n',
    '2022-07-29T14:44:56.821Z nodeRunner Preparing sandbox [worker #0, session #u60d9]\n',
    '2022-07-29T14:44:56.821Z nodeRunner Prepared sandbox [worker #0, session #u60d9]\n',
    '2022-07-29T14:44:56.821Z workers [worker #0, session #u60d9] Running tests in sandbox\n',
    '2022-07-29T14:44:56.829Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2022-07-29T14:44:56.829Z project Requested to run all tests\n',
    '2022-07-29T14:44:56.830Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2022-07-29T14:44:56.830Z project Requested to run all tests\n',
    '2022-07-29T14:44:56.832Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2022-07-29T14:44:56.832Z project Requested to run all tests\n',
    '2022-07-29T14:44:56.833Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2022-07-29T14:44:56.833Z project Requested to run all tests\n',
    '2022-07-29T14:44:56.837Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2022-07-29T14:44:56.837Z project Requested to run all tests\n',
    '2022-07-29T14:45:10.867Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.js\n' +
      '- src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.spec.js\n' +
      '- src/components/CroppingSeasonEventsTable/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/BonsaiTable.js\n' +
      '- src/components/Bonsai/BonsaiTable/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/MobileRows.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/index.js\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-07-29T14:45:11.071Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-07-29T14:45:12.234Z workers Scheduling Jest Test Run (u60d9): 2022-07-29T14:44:57.371Z\n',
    '2022-07-29T14:45:12.343Z workers [u60d9] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:12.343Z workers [u60d9] Test executed: renders without errors\n',
    '2022-07-29T14:45:12.345Z workers [u60d9] Test executed: renders mobile table if screen size < 960px\n',
    '2022-07-29T14:45:12.354Z workers [u60d9] Run 2 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:12.355Z workers Jest Test Run Complete (u60d9): 2022-07-29T14:45:12.233Z\n',
    '2022-07-29T14:45:12.355Z workers [u60d9] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:12.356Z project Test run finished\n',
    '2022-07-29T14:45:12.356Z project Processed console.log entries\n',
    '2022-07-29T14:45:12.357Z project Processed loading sequences\n',
    '2022-07-29T14:45:12.357Z project Processed executed tests\n',
    '2022-07-29T14:45:12.376Z project Processed code coverage\n',
    '2022-07-29T14:45:16.237Z project Test run result processed and sent to IDE\n',
    '2022-07-29T14:45:16.341Z project Test run started; run priority: 3\n',
    '2022-07-29T14:45:16.342Z project Running all tests\n',
    '2022-07-29T14:45:16.361Z workers Starting test run, priority: 3\n',
    '2022-07-29T14:45:16.361Z workers Distributing tests between 14 workers\n',
    '2022-07-29T14:45:16.361Z workers Running tests in parallel\n',
    '2022-07-29T14:45:16.361Z nodeRunner Starting sandbox [worker #0, session #sy3hd]\n',
    '2022-07-29T14:45:16.361Z nodeRunner Starting sandbox [worker #1, session #fdl1q]\n',
    '2022-07-29T14:45:16.361Z nodeRunner Starting sandbox [worker #2, session #iqhhj]\n',
    '2022-07-29T14:45:16.361Z nodeRunner Starting sandbox [worker #3, session #2tcb4]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Starting sandbox [worker #4, session #20bat]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Starting sandbox [worker #5, session #v3a3f]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #0, session #sy3hd]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #1, session #fdl1q]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #2, session #iqhhj]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #3, session #2tcb4]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #4, session #20bat]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Preparing sandbox [worker #5, session #v3a3f]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #0, session #sy3hd]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #1, session #fdl1q]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #2, session #iqhhj]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #3, session #2tcb4]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #4, session #20bat]\n',
    '2022-07-29T14:45:16.362Z nodeRunner Prepared sandbox [worker #5, session #v3a3f]\n',
    '2022-07-29T14:45:16.362Z workers [worker #0, session #sy3hd] Running tests in sandbox\n',
    '2022-07-29T14:45:16.365Z workers [worker #1, session #fdl1q] Running tests in sandbox\n',
    '2022-07-29T14:45:16.368Z workers [worker #2, session #iqhhj] Running tests in sandbox\n',
    '2022-07-29T14:45:16.374Z workers [worker #3, session #2tcb4] Running tests in sandbox\n',
    '2022-07-29T14:45:16.376Z workers [worker #4, session #20bat] Running tests in sandbox\n',
    '2022-07-29T14:45:16.378Z workers [worker #5, session #v3a3f] Running tests in sandbox\n',
    '2022-07-29T14:45:18.705Z workers Scheduling Jest Test Run (sy3hd): 2022-07-29T14:45:16.387Z\n',
    '2022-07-29T14:45:18.730Z workers [sy3hd] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:18.731Z workers [sy3hd] Test executed: renders the correct UI\n',
    '2022-07-29T14:45:18.731Z workers [sy3hd] Test executed: renders plan chip if a season has a corresponding plan\n',
    '2022-07-29T14:45:18.732Z workers [sy3hd] Test executed: shows correct empty state\n',
    '2022-07-29T14:45:18.762Z workers [sy3hd] Run 3 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:18.763Z workers Jest Test Run Complete (sy3hd): 2022-07-29T14:45:18.711Z\n',
    '2022-07-29T14:45:18.764Z workers [sy3hd] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:21.412Z workers Scheduling Jest Test Run (v3a3f): 2022-07-29T14:45:17.083Z\n',
    '2022-07-29T14:45:21.424Z workers [v3a3f] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:21.425Z workers [v3a3f] Test executed: sets correct reducer state\n',
    '2022-07-29T14:45:21.426Z workers [v3a3f] Test executed: Sets selection from url on first load\n',
    '2022-07-29T14:45:21.427Z workers [v3a3f] Test executed: Updates url on every subsequent selection after first one\n',
    '2022-07-29T14:45:21.427Z workers [v3a3f] Test executed: Renames entity\n',
    '2022-07-29T14:45:21.427Z workers [v3a3f] Test executed: Moves entity\n',
    '2022-07-29T14:45:21.428Z workers [v3a3f] Test executed: Deletes entity and its all descendants\n',
    '2022-07-29T14:45:21.429Z workers [v3a3f] Test executed: Deletes parent farm when deleting last field\n',
    '2022-07-29T14:45:21.429Z workers [v3a3f] Test executed: Keeps parent farm when deleting nth field\n',
    '2022-07-29T14:45:21.430Z workers [v3a3f] Test executed: sets correct reducer state\n',
    '2022-07-29T14:45:21.430Z workers [v3a3f] Test executed: sets correct selectedId when all fields in rotation\n',
    '2022-07-29T14:45:21.452Z workers [v3a3f] Run 10 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:21.452Z workers Jest Test Run Complete (v3a3f): 2022-07-29T14:45:21.409Z\n',
    '2022-07-29T14:45:21.453Z workers [v3a3f] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:26.539Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.js\n' +
      '- src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.spec.js\n' +
      '- src/components/CroppingSeasonEventsTable/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/BonsaiTable.js\n' +
      '- src/components/Bonsai/BonsaiTable/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/MobileRows.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/index.js\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-07-29T14:45:26.742Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-07-29T14:45:29.251Z workers Scheduling Jest Test Run (fdl1q): 2022-07-29T14:45:17.087Z\n',
    '2022-07-29T14:45:29.252Z workers [fdl1q] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:29.252Z workers [fdl1q] Test executed: renders without errors\n',
    '2022-07-29T14:45:29.255Z workers [fdl1q] Test executed: renders mobile table if screen size < 960px\n',
    '2022-07-29T14:45:29.277Z workers [fdl1q] Run 2 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:29.277Z workers Jest Test Run Complete (fdl1q): 2022-07-29T14:45:29.248Z\n',
    '2022-07-29T14:45:29.279Z workers [fdl1q] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:30.748Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/pages/BuildRotations/components/CroppingSeasonInfo/CroppingSeasonInfo.js\n' +
      '- src/pages/BuildRotations/components/CroppingSeasonInfo/CroppingSeasonInfo.spec.js\n' +
      '- src/components/CroppingSeasonEventsTable/CroppingSeasonEventsTable.js\n' +
      '- src/components/CroppingSeasonEventsTable/index.js\n' +
      '- src/components/CroppingSeasonCardList/CroppingSeasonCardList.js\n' +
      '- src/components/CroppingSeasonCardList/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/BonsaiTable.js\n' +
      '- src/components/Bonsai/BonsaiTable/index.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/MobileRows.js\n' +
      '- src/components/Bonsai/BonsaiTable/MobileRows/index.js\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-07-29T14:45:30.950Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-07-29T14:45:31.340Z workers Scheduling Jest Test Run (20bat): 2022-07-29T14:45:17.089Z\n',
    '2022-07-29T14:45:31.420Z workers [20bat] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:31.421Z workers [20bat] Test executed: renders cropping season card if eligible seasons\n',
    '2022-07-29T14:45:31.421Z workers [20bat] Test executed: renders No Cropping Seasons Card if no eligible seasons\n',
    '2022-07-29T14:45:31.422Z workers [20bat] Test executed: does not render plan chip if season has no carbon plan\n',
    '2022-07-29T14:45:31.423Z workers [20bat] Test executed: renders plan chip if season has a carbon plan\n',
    '2022-07-29T14:45:31.448Z workers [20bat] Run 4 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:31.449Z workers Jest Test Run Complete (20bat): 2022-07-29T14:45:31.339Z\n',
    '2022-07-29T14:45:31.450Z workers [20bat] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:33.611Z workers Scheduling Jest Test Run (2tcb4): 2022-07-29T14:45:17.085Z\n',
    '2022-07-29T14:45:33.754Z workers [2tcb4] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:33.754Z workers [2tcb4] Test executed: renders the correct UI\n',
    '2022-07-29T14:45:33.755Z workers [2tcb4] Test executed: renders the correct farm tree\n',
    '2022-07-29T14:45:33.755Z workers [2tcb4] Test executed: search is hooked up correctly\n',
    '2022-07-29T14:45:33.781Z workers [2tcb4] Run 3 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:33.782Z workers Jest Test Run Complete (2tcb4): 2022-07-29T14:45:33.636Z\n',
    '2022-07-29T14:45:33.784Z workers [2tcb4] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:34.584Z workers Scheduling Jest Test Run (iqhhj): 2022-07-29T14:45:17.081Z\n',
    '2022-07-29T14:45:34.612Z workers [iqhhj] Loaded unknown number of test(s)\n',
    '2022-07-29T14:45:34.613Z workers [iqhhj] Test executed: renders the correct UI for "All Season" filter\n',
    '2022-07-29T14:45:34.613Z workers [iqhhj] Test executed: renders correct UI for Target Year filter\n',
    '2022-07-29T14:45:34.614Z workers [iqhhj] Test executed: renders correct UI for Historical Rotation filter\n',
    '2022-07-29T14:45:34.614Z workers [iqhhj] Test executed: empty state works correctly\n',
    '2022-07-29T14:45:34.615Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2022-07-29T14:45:34.615Z workers [iqhhj] Test executed: disables "Historical Rotation" filter button if custom rotation\n',
    '2022-07-29T14:45:34.665Z workers [iqhhj] Run 5 test(s), skipped 0 test(s)\n',
    '2022-07-29T14:45:34.666Z workers Jest Test Run Complete (iqhhj): 2022-07-29T14:45:34.583Z\n',
    '2022-07-29T14:45:34.666Z workers [iqhhj] Sandbox is responsive, closing it\n',
    '2022-07-29T14:45:34.667Z workers Merging parallel test run results\n',
    '2022-07-29T14:45:34.673Z project Test run finished\n',
    '2022-07-29T14:45:34.673Z project Processed console.log entries\n',
    '2022-07-29T14:45:34.674Z project Processed loading sequences\n',
    '2022-07-29T14:45:34.675Z project Processed executed tests\n',
    '2022-07-29T14:45:34.700Z project Processed code coverage\n',
    '2022-07-29T14:45:38.868Z project Test run result processed and sent to IDE\n'
  ]
}
smcenlly commented 2 years ago

Could you please try adding the Smart Start never setting to tell Wallaby to never automatically run tests for opened files? I think it may fix your problem.

If you're still having problems, please let us know.

Example

{
    autoDetect: true,
    tests: [
      { pattern: 'src/**/*.spec.js*', ignore: false, trigger: true, load: true, test: true, order: 3 },
      { pattern: 'src/store/reducers/*test.js', ignore: false, trigger: true, load: true, test: true, order: 4 },
      { pattern: 'src/store/selectors/*test.js', ignore: false, trigger: true, load: true, test: true, order: 5 },
      { pattern: 'src/store/thunks/*test.js', ignore: false, trigger: true, load: true, test: true, order: 6 }
    ],
    files: [
      { pattern: 'src/**/!(*.test|*.spec|*.stories).js*', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: 'src/__mocks__/ol/**/*.js*', instrument: false, ignore: false, trigger: true, load: true, order: 2 }
    ],
+   { startMode: 'never', pattern: '**/*' },
  }
smcenlly commented 2 years ago

Assuming that our suggestion solved your problem.