wallabyjs / public

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

"Cannot use import statement ouside a module" #2897

Closed aubrey-ford-nutrien closed 2 years ago

aubrey-ford-nutrien commented 2 years ago

Issue description or question

I've reset everything back to the exact state (git commit, node version, wallaby version, node_modules reinstall, ect) it was in a couple weeks ago when everything worked fine, but now no matter what I do I keep getting that error for 3 of 100+ tests. Running jest on its own works fine. All three are ultimately caused by the same file import, but it works fine running regular tests. Nothing special about the tests themselves except that down the line that file is imported.

image

Wallaby diagnostics report

{
  editorVersion: 'WebStorm 2021.3.1',
  pluginVersion: '1.0.223',
  editorType: 'IntelliJ',
  osVersion: 'darwin 20.6.0',
  nodeVersion: 'v12.22.1',
  coreVersion: '1.0.1205',
  checksum: 'NmRhOWQwMjg4ZTY4ZjcxYmUwYWY2ZWI2ZWEzODFmYTgsMTY0NzA0MzIwMDAwMCww',
  config: {
    tests: [ { pattern: 'src/**/*.spec.js', ignore: false, trigger: true, load: true, test: true, order: 2 } ],
    files: [ { pattern: 'src/**/!(*.test|*.spec|*.stories).js', ignore: false, trigger: true, load: true, order: 1 } ],
    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/packages/agrible-frontend/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/packages/agrible-frontend/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/packages/agrible-frontend/node_modules/jest-jasmine2/build/index.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [
                [ '^.+\\.(js|jsx|ts|tsx)$', '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/node_modules/react-scripts/config/jest/babelTransform.js' ],
                [ '^.+\\.css$', '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/node_modules/react-scripts/config/jest/cssTransform.js' ],
                [
                  '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)',
                  '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/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/packages/agrible-frontend/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/packages/agrible-frontend/node_modules/jest-watch-typeahead/filename.js' },
              { config: {}, path: '<homeDir>/workspace/agrible-platform/packages/agrible-frontend/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,
    addModifiedTestFileToExclusiveTestRun: true,
    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,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    env: {
      type: 'node',
      params: {},
      runner: '<homeDir>/.nvm/versions/node/v12.22.1/bin/node',
      viewportSize: { width: 800, height: 600 },
      options: { width: 800, height: 600 },
      bundle: true
    },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: "process.env.DEBUG_PRINT_LIMIT = 100000\n\nmodule.exports = () => ({\n  autoDetect: true,\n  tests: ['src/**/*.spec.js'],\n  files: ['src/**/!(*.test|*.spec|*.stories).js']\n})\n"
  },
  packageJSON: {
    dependencies: {
      '@babel/runtime-corejs3': '^7.13.17',
      '@date-io/date-fns': '^1.3.13',
      '@material-ui/core': '4.11.3',
      '@material-ui/icons': '4.11.2',
      '@material-ui/system': '^4.9.3',
      '@n8tb1t/use-scroll-position': '^1.0.43',
      '@nutrien/bonsai-core': '0.270.0',
      '@nutrien/bonsai-hooks': '0.18.0',
      '@nutrien/bonsai-icons': '0.25.1',
      '@nutrien/bonsai-theme': '0.37.0',
      '@nutrien/farm-tree-navigation': '2.8.0',
      '@nutrien/geospatial': '5.23.0',
      '@nutrien/hub-analytics': '0.10.10',
      '@nutrien/hub-auth': '1.1.10',
      '@nutrien/hub-config': '2.1.0',
      '@nutrien/hub-routing': '0.1.15',
      '@nutrien/hub-shared': '3.69.1',
      '@nutrien/hub-sustainability-dashboard': '1.37.1',
      '@nutrien/hub-types': '1.4.2',
      '@nutrien/uet-lab': '1.12.5',
      '@nutrien/uet-react': '1.13.12',
      '@nutrien/uet-theme': '1.8.0',
      '@nutrien/weather-story': '^5.0.0',
      '@react-native-async-storage/async-storage': '^1.15.5',
      '@sentry/browser': '^6.3.0',
      '@turf/bbox': '^6.3.0',
      'autosuggest-highlight': '^3.1.1',
      'core-js': '^3.4.8',
      'cross-env': '^6.0.3',
      d3: '^3.5.12',
      'date-fns': '^2.9.0',
      'expo-firebase-analytics': '^4.0.2',
      graphql: '^15.5.1',
      'graphql-hooks': '^4.3.0',
      'graphql-hooks-memcache': '^1.3.1',
      i18next: '^19.0.1',
      'i18next-browser-languagedetector': '^4.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',
      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-safe-area-context': '^3.2.0',
      '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-redux': '^7.1.3',
      'react-router-dom': '^5.1.2',
      'react-router-prop-types': '^1.0.4',
      '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.1.0',
      '@unimodules/react-native-adapter': '^6.2.2',
      '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-standard': '^4.0.1',
      faker: '^4.1.0',
      firebase: '^8.6.8',
      formik: '^2.1.3',
      'jest-canvas-mock': '^2.2.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',
      'npm-force-resolutions': '0.0.10',
      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-elements': '^3.4.2',
      '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: 1165 },
  debug: [
    '2022-01-04T01:22:06.324Z angular/cli config Angular CLI not found.\n',
    '2022-01-04T01:22:06.437Z jest/config Detected Jest.\n',
    '2022-01-04T01:22:06.437Z jest/config Configured Jest.\n',
    '2022-01-04T01:22:06.438Z project Wallaby Node version: v12.22.1\n',
    '2022-01-04T01:22:06.438Z project Wallaby config: <homeDir>/workspace/agrible-platform/packages/agrible-frontend/wallaby.js\n',
    '2022-01-04T01:22:06.965Z project File cache: <homeDir>/Library/Caches/JetBrains/WebStorm2021.3/wallaby/projects/21beb9684287bfce\n',
    '2022-01-04T01:22:07.047Z uiService Listening port 51235\n',
    '2022-01-04T01:22:07.057Z project Config file change detected, invalidating local cache\n',
    '2022-01-04T01:22:07.110Z workers Parallelism for initial run: 14, for regular run: 7\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #0\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #1\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #2\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #3\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #4\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #5\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #6\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #7\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #8\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #9\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #10\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #11\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #12\n',
    '2022-01-04T01:22:07.110Z workers Starting run worker instance #13\n',
    '2022-01-04T01:22:07.111Z workers Web server is listening at 56272\n',
    '2022-01-04T01:22:07.111Z project File cache requires some updates, waiting required files from IDE\n',
    '2022-01-04T01:22:07.280Z project Stopping process pool\n',
    '2022-01-04T01:22:07.283Z project Test run started; run priority: 3\n',
    '2022-01-04T01:22:07.289Z project Running all tests\n',
    '2022-01-04T01:22:07.316Z workers Starting test run, priority: 3\n',
    '2022-01-04T01:22:07.316Z workers Distributing tests between 14 workers\n',
    '2022-01-04T01:22:07.318Z workers Running tests in parallel\n',
    '2022-01-04T01:22:07.318Z nodeRunner Starting sandbox [worker #0, session #iwadv]\n',
    '2022-01-04T01:22:07.318Z nodeRunner Starting sandbox [worker #1, session #lizeu]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #2, session #d2zwx]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #3, session #jyhe3]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #4, session #3fpye]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #5, session #3wdla]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #6, session #h348t]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #7, session #bdjyp]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #8, session #f37mh]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #9, session #5px87]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #10, session #qgsii]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #11, session #sippg]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #12, session #cmako]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Starting sandbox [worker #13, session #thvdt]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #0, session #iwadv]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #1, session #lizeu]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #2, session #d2zwx]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #3, session #jyhe3]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #4, session #3fpye]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #5, session #3wdla]\n',
    '2022-01-04T01:22:07.319Z nodeRunner Preparing sandbox [worker #6, session #h348t]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #7, session #bdjyp]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #8, session #f37mh]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #9, session #5px87]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #10, session #qgsii]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #11, session #sippg]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #12, session #cmako]\n',
    '2022-01-04T01:22:07.320Z nodeRunner Preparing sandbox [worker #13, session #thvdt]\n',
    '2022-01-04T01:22:07.352Z workers Started run worker instance (delayed) #0\n',
    '2022-01-04T01:22:07.353Z nodeRunner Prepared sandbox [worker #0, session #iwadv]\n',
    '2022-01-04T01:22:07.353Z workers [worker #0, session #iwadv] Running tests in sandbox\n',
    '2022-01-04T01:22:07.356Z workers Started run worker instance (delayed) #1\n',
    '2022-01-04T01:22:07.356Z nodeRunner Prepared sandbox [worker #1, session #lizeu]\n',
    '2022-01-04T01:22:07.356Z workers [worker #1, session #lizeu] Running tests in sandbox\n',
    '2022-01-04T01:22:07.358Z workers Started run worker instance (delayed) #2\n',
    '2022-01-04T01:22:07.358Z nodeRunner Prepared sandbox [worker #2, session #d2zwx]\n',
    '2022-01-04T01:22:07.358Z workers [worker #2, session #d2zwx] Running tests in sandbox\n',
    '2022-01-04T01:22:07.361Z workers Started run worker instance (delayed) #3\n',
    '2022-01-04T01:22:07.361Z nodeRunner Prepared sandbox [worker #3, session #jyhe3]\n',
    '2022-01-04T01:22:07.361Z workers [worker #3, session #jyhe3] Running tests in sandbox\n',
    '2022-01-04T01:22:07.365Z workers Started run worker instance (delayed) #4\n',
    '2022-01-04T01:22:07.365Z nodeRunner Prepared sandbox [worker #4, session #3fpye]\n',
    '2022-01-04T01:22:07.365Z workers [worker #4, session #3fpye] Running tests in sandbox\n',
    '2022-01-04T01:22:07.370Z workers Started run worker instance (delayed) #6\n',
    '2022-01-04T01:22:07.370Z nodeRunner Prepared sandbox [worker #6, session #h348t]\n',
    '2022-01-04T01:22:07.370Z workers [worker #6, session #h348t] Running tests in sandbox\n',
    '2022-01-04T01:22:07.372Z workers Started run worker instance (delayed) #5\n',
    '2022-01-04T01:22:07.372Z nodeRunner Prepared sandbox [worker #5, session #3wdla]\n',
    '2022-01-04T01:22:07.372Z workers [worker #5, session #3wdla] Running tests in sandbox\n',
    '2022-01-04T01:22:07.373Z workers Started run worker instance (delayed) #8\n',
    '2022-01-04T01:22:07.373Z nodeRunner Prepared sandbox [worker #8, session #f37mh]\n',
    '2022-01-04T01:22:07.373Z workers [worker #8, session #f37mh] Running tests in sandbox\n',
    '2022-01-04T01:22:07.375Z workers Started run worker instance (delayed) #7\n',
    '2022-01-04T01:22:07.375Z nodeRunner Prepared sandbox [worker #7, session #bdjyp]\n',
    '2022-01-04T01:22:07.376Z workers [worker #7, session #bdjyp] Running tests in sandbox\n',
    '2022-01-04T01:22:07.377Z workers Started run worker instance (delayed) #11\n',
    '2022-01-04T01:22:07.377Z nodeRunner Prepared sandbox [worker #11, session #sippg]\n',
    '2022-01-04T01:22:07.377Z workers [worker #11, session #sippg] Running tests in sandbox\n',
    '2022-01-04T01:22:07.378Z workers Started run worker instance (delayed) #9\n',
    '2022-01-04T01:22:07.378Z nodeRunner Prepared sandbox [worker #9, session #5px87]\n',
    '2022-01-04T01:22:07.378Z workers [worker #9, session #5px87] Running tests in sandbox\n',
    '2022-01-04T01:22:07.384Z workers Started run worker instance (delayed) #10\n',
    '2022-01-04T01:22:07.384Z nodeRunner Prepared sandbox [worker #10, session #qgsii]\n',
    '2022-01-04T01:22:07.384Z workers [worker #10, session #qgsii] Running tests in sandbox\n',
    '2022-01-04T01:22:07.387Z workers Started run worker instance (delayed) #12\n',
    '2022-01-04T01:22:07.387Z nodeRunner Prepared sandbox [worker #12, session #cmako]\n',
    '2022-01-04T01:22:07.387Z workers [worker #12, session #cmako] Running tests in sandbox\n',
    '2022-01-04T01:22:07.389Z workers Started run worker instance (delayed) #13\n',
    '2022-01-04T01:22:07.389Z nodeRunner Prepared sandbox [worker #13, session #thvdt]\n',
    '2022-01-04T01:22:07.389Z workers [worker #13, session #thvdt] Running tests in sandbox\n',
    '2022-01-04T01:22:13.163Z workers Scheduling Jest Test Run (thvdt): 2022-01-04T01:22:08.549Z\n',
    '2022-01-04T01:22:13.333Z workers Scheduling Jest Test Run (d2zwx): 2022-01-04T01:22:08.476Z\n',
    '2022-01-04T01:22:15.008Z workers Scheduling Jest Test Run (lizeu): 2022-01-04T01:22:08.481Z\n',
    '2022-01-04T01:22:15.336Z workers Scheduling Jest Test Run (sippg): 2022-01-04T01:22:08.497Z\n',
    '2022-01-04T01:22:15.393Z workers Scheduling Jest Test Run (3fpye): 2022-01-04T01:22:08.474Z\n',
    '2022-01-04T01:22:15.502Z workers Scheduling Jest Test Run (iwadv): 2022-01-04T01:22:08.476Z\n',
    '2022-01-04T01:22:15.672Z workers Scheduling Jest Test Run (bdjyp): 2022-01-04T01:22:08.487Z\n',
    '2022-01-04T01:22:17.658Z workers [iwadv] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:17.661Z workers [iwadv] Test executed: should render\n',
    '2022-01-04T01:22:17.661Z workers [iwadv] Test executed: should not render\n',
    '2022-01-04T01:22:17.667Z workers [iwadv] Test executed: renders the title\n',
    '2022-01-04T01:22:17.670Z workers [iwadv] Test executed: renders children\n',
    '2022-01-04T01:22:17.670Z workers [iwadv] Test executed: renders the close button\n',
    '2022-01-04T01:22:17.671Z workers [iwadv] Test executed: renders the right-header button\n',
    '2022-01-04T01:22:17.672Z workers [iwadv] Test executed: hides the right-header button\n',
    '2022-01-04T01:22:17.672Z workers [iwadv] Test executed: renders the right-header button text\n',
    '2022-01-04T01:22:17.672Z workers [iwadv] Test executed: renders the footer button\n',
    '2022-01-04T01:22:17.673Z workers [iwadv] Test executed: hides the footer button\n',
    '2022-01-04T01:22:17.673Z workers [iwadv] Test executed: renders the footer button text\n',
    '2022-01-04T01:22:17.687Z workers [iwadv] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:17.688Z workers [iwadv] Test executed: returns an object when use has community dashboard access is called\n',
    '2022-01-04T01:22:17.689Z workers [iwadv] Test executed: returns undefined when no user is available\n',
    '2022-01-04T01:22:17.695Z workers [iwadv] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:17.695Z workers [iwadv] Test executed: renders component with correct summary description\n',
    '2022-01-04T01:22:17.695Z workers [iwadv] Test executed: renders nothing if no summary description provided\n',
    '2022-01-04T01:22:17.702Z workers [iwadv] Run 15 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:17.703Z workers Jest Test Run Complete (iwadv): 2022-01-04T01:22:17.648Z\n',
    '2022-01-04T01:22:17.704Z workers [iwadv] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:19.279Z workers Scheduling Jest Test Run (f37mh): 2022-01-04T01:22:08.491Z\n',
    '2022-01-04T01:22:19.397Z workers [bdjyp] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:19.397Z workers [bdjyp] Test executed: Should render farm tree search\n',
    '2022-01-04T01:22:19.398Z workers [bdjyp] Test executed: Should not show search clear if there is no search term\n',
    '2022-01-04T01:22:19.398Z workers [bdjyp] Test executed: Should show search clear if there is a search term\n',
    '2022-01-04T01:22:19.398Z workers [bdjyp] Test executed: Should handle clearing search\n',
    '2022-01-04T01:22:19.417Z workers [bdjyp] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:19.417Z workers [bdjyp] Test executed: without errors\n',
    '2022-01-04T01:22:19.417Z workers [bdjyp] Test executed: in correct order\n',
    '2022-01-04T01:22:19.417Z workers [bdjyp] Test executed: with correct author\n',
    '2022-01-04T01:22:19.418Z workers [bdjyp] Test executed: responds to clicking sort button correctly\n',
    '2022-01-04T01:22:19.420Z workers [bdjyp] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:19.420Z workers [bdjyp] Test executed: renders without errors\n',
    '2022-01-04T01:22:19.429Z workers [bdjyp] Run 9 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:19.430Z workers Jest Test Run Complete (bdjyp): 2022-01-04T01:22:19.388Z\n',
    '2022-01-04T01:22:19.431Z workers [bdjyp] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:21.068Z workers Scheduling Jest Test Run (3wdla): 2022-01-04T01:22:08.488Z\n',
    '2022-01-04T01:22:21.179Z workers [thvdt] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:21.179Z workers [thvdt] Test executed: returns the stakeholder dashboard link when user has access to it and the sustainabilityDashboardEnabled flag is on\n',
    '2022-01-04T01:22:21.180Z workers [thvdt] Test executed: returns the grower dashboard link when the sustainabiltityGrowerDashboard flag is on\n',
    '2022-01-04T01:22:21.180Z workers [thvdt] Test executed: returns the old sustainability link as a default\n',
    '2022-01-04T01:22:21.205Z workers [thvdt] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:21.205Z workers Scheduling Jest Test Run (jyhe3): 2022-01-04T01:22:08.469Z\n',
    '2022-01-04T01:22:21.205Z workers [thvdt] Test executed: renders without errors\n',
    '2022-01-04T01:22:21.205Z workers [thvdt] Test executed: has fields content is rendered when there are fields\n',
    '2022-01-04T01:22:21.205Z workers [thvdt] Test executed: no fields content is rendered when there are no fields\n',
    '2022-01-04T01:22:21.209Z workers [thvdt] Run 6 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:21.209Z workers Jest Test Run Complete (thvdt): 2022-01-04T01:22:21.171Z\n',
    '2022-01-04T01:22:21.210Z workers [thvdt] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:21.803Z workers Scheduling Jest Test Run (h348t): 2022-01-04T01:22:08.491Z\n',
    '2022-01-04T01:22:22.166Z workers Scheduling Jest Test Run (5px87): 2022-01-04T01:22:08.496Z\n',
    '2022-01-04T01:22:22.642Z workers Scheduling Jest Test Run (qgsii): 2022-01-04T01:22:08.494Z\n',
    '2022-01-04T01:22:22.838Z workers [3wdla] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:22.839Z workers [3wdla] Test executed: should create enterprise group box\n',
    '2022-01-04T01:22:22.839Z workers [3wdla] Test executed: should create farm box\n',
    '2022-01-04T01:22:22.839Z workers [3wdla] Test executed: should be undefined after unmounting\n',
    '2022-01-04T01:22:22.839Z workers [3wdla] Test executed: should show highlighed term for title if search string exists\n',
    '2022-01-04T01:22:22.840Z workers [3wdla] Test executed: should not show highlighed term if search string does not exist\n',
    '2022-01-04T01:22:22.843Z workers [3wdla] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:22.843Z workers [3wdla] Test executed: filter active members out\n',
    '2022-01-04T01:22:22.844Z workers [3wdla] Test executed: filters ineligible members by country\n',
    '2022-01-04T01:22:22.846Z workers [3wdla] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:22.846Z workers [3wdla] Test executed: renders without errors\n',
    '2022-01-04T01:22:22.851Z workers [3wdla] Run 8 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:22.851Z workers Jest Test Run Complete (3wdla): 2022-01-04T01:22:22.808Z\n',
    '2022-01-04T01:22:22.852Z workers [3wdla] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:23.399Z workers [lizeu] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.399Z workers [lizeu] Test executed: renders without errors with props\n',
    '2022-01-04T01:22:23.400Z workers [lizeu] Test executed: renders without errors without props\n',
    '2022-01-04T01:22:23.403Z workers [lizeu] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.404Z workers [lizeu] Test executed: returns the correct list of products\n',
    '2022-01-04T01:22:23.454Z workers Sandbox (active) [lizeu] error: Cannot use import statement outside a module\n',
    '2022-01-04T01:22:23.463Z workers [lizeu] Run 3 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:23.463Z workers Jest Test Run Complete (lizeu): 2022-01-04T01:22:23.385Z\n',
    '2022-01-04T01:22:23.464Z workers [lizeu] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:23.620Z workers [sippg] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.621Z workers [sippg] Test executed: contains the same number of list-items as paragraphs provided in props\n',
    '2022-01-04T01:22:23.621Z workers [sippg] Test executed: contains the same text as paragraph data contains\n',
    '2022-01-04T01:22:23.628Z workers [sippg] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.629Z workers [sippg] Test executed: renders correctly\n',
    '2022-01-04T01:22:23.629Z workers [sippg] Test executed: clicking close button calls handleClose\n',
    '2022-01-04T01:22:23.665Z workers [sippg] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.665Z workers [sippg] Test executed: Renders Component with past projects\n',
    '2022-01-04T01:22:23.665Z workers [sippg] Test executed: Does not render component with if no projects\n',
    '2022-01-04T01:22:23.666Z workers [sippg] Test executed: Does not render component with if no past projects\n',
    '2022-01-04T01:22:23.672Z workers [sippg] Run 7 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:23.672Z workers Jest Test Run Complete (sippg): 2022-01-04T01:22:23.616Z\n',
    '2022-01-04T01:22:23.673Z workers [sippg] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:23.975Z workers [d2zwx] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.975Z workers [d2zwx] Test executed: renders the circular progress meter\n',
    '2022-01-04T01:22:23.975Z workers [d2zwx] Test executed: renders the label when withLabel is true\n',
    '2022-01-04T01:22:23.975Z workers [d2zwx] Test executed: hides the label when withLabel is false\n',
    '2022-01-04T01:22:23.987Z workers [d2zwx] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:23.987Z workers [d2zwx] Test executed: renders login form\n',
    '2022-01-04T01:22:23.987Z workers [d2zwx] Test executed: renders login form with SSO\n',
    '2022-01-04T01:22:23.987Z workers [d2zwx] Test executed: if a redirect exists, <Redirect /> goes to that location\n',
    '2022-01-04T01:22:24.016Z workers Sandbox (active) [d2zwx] error: Cannot use import statement outside a module\n',
    '2022-01-04T01:22:24.024Z workers [d2zwx] Run 6 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:24.024Z workers Jest Test Run Complete (d2zwx): 2022-01-04T01:22:23.972Z\n',
    '2022-01-04T01:22:24.025Z workers [d2zwx] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:24.196Z workers [5px87] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.196Z workers [5px87] Test executed: renders card with prop values\n',
    '2022-01-04T01:22:24.208Z workers [5px87] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.208Z workers [5px87] Test executed: renders component with correct title called Achievements\n',
    '2022-01-04T01:22:24.208Z workers [5px87] Test executed: should show first payment achievement row if it does not exists\n',
    '2022-01-04T01:22:24.211Z workers [5px87] Test executed: should show intial metrics achievement row if it does not exists\n',
    '2022-01-04T01:22:24.212Z workers [5px87] Test executed: should show second payment achievement row if it does not exists\n',
    '2022-01-04T01:22:24.212Z workers [5px87] Test executed: should show sustainability report achievement row if it does not exists\n',
    '2022-01-04T01:22:24.213Z workers [5px87] Test executed: should not show first payment achievement row if it does not exists\n',
    '2022-01-04T01:22:24.213Z workers [5px87] Test executed: should not show intial metrics achievement row if it does not exists\n',
    '2022-01-04T01:22:24.215Z workers [5px87] Test executed: should not show second payment achievement row if it does not exists\n',
    '2022-01-04T01:22:24.216Z workers [5px87] Test executed: should not show sustainability report achievement row if it does not exists\n',
    '2022-01-04T01:22:24.217Z workers [5px87] Test executed: popover should initially not appear, appear when clicked, then disappear when closed\n',
    '2022-01-04T01:22:24.227Z workers [5px87] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.228Z workers [5px87] Test executed: renders component with data with no errors\n',
    '2022-01-04T01:22:24.228Z workers [5px87] Test executed: hides Deadline Timestamp component if enrollment end date does not exists and shows getting started button\n',
    '2022-01-04T01:22:24.228Z workers [5px87] Test executed: Displays a deadline closed button if enrollment deadline is passed\n',
    '2022-01-04T01:22:24.228Z workers [5px87] Test executed: shows join and dismiss button if user is invited to project\n',
    '2022-01-04T01:22:24.236Z workers [5px87] Run 15 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:24.237Z workers Jest Test Run Complete (5px87): 2022-01-04T01:22:24.181Z\n',
    '2022-01-04T01:22:24.238Z workers [5px87] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:24.437Z workers Scheduling Jest Test Run (cmako): 2022-01-04T01:22:08.545Z\n',
    '2022-01-04T01:22:24.690Z workers [qgsii] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.691Z workers [qgsii] Test executed: renders alternate view if renderAlternate prop is true\n',
    '2022-01-04T01:22:24.691Z workers [qgsii] Test executed: renders standard view if renderAlternate prop is false\n',
    '2022-01-04T01:22:24.694Z workers [qgsii] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.694Z workers [qgsii] Test executed: renders <Achievement/>\n',
    '2022-01-04T01:22:24.694Z workers [qgsii] Test executed: renders yellow if active is true\n',
    '2022-01-04T01:22:24.695Z workers [qgsii] Test executed: renders grey if active is false\n',
    '2022-01-04T01:22:24.702Z workers [qgsii] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:24.703Z workers [qgsii] Test executed: renders with three sections\n',
    '2022-01-04T01:22:24.713Z workers [qgsii] Run 6 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:24.713Z workers Jest Test Run Complete (qgsii): 2022-01-04T01:22:24.657Z\n',
    '2022-01-04T01:22:24.714Z workers [qgsii] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:25.269Z workers [cmako] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:25.269Z workers [cmako] Test executed: returns the correct list of products\n',
    '2022-01-04T01:22:25.296Z workers [cmako] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:25.298Z workers [cmako] Test executed: renders without errors\n',
    '2022-01-04T01:22:25.299Z workers [cmako] Test executed: clicking a visited step goes to that step\n',
    '2022-01-04T01:22:25.299Z workers [cmako] Test executed: clicking an unvisited step does nothing\n',
    '2022-01-04T01:22:25.305Z workers [cmako] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:25.305Z workers [cmako] Test executed: Renders Component\n',
    '2022-01-04T01:22:25.310Z workers [cmako] Run 5 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:25.310Z workers Jest Test Run Complete (cmako): 2022-01-04T01:22:25.267Z\n',
    '2022-01-04T01:22:25.311Z workers [cmako] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:26.087Z workers [3fpye] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:26.087Z workers [3fpye] Test executed: should create an entity box when entity type is not fields\n',
    '2022-01-04T01:22:26.087Z workers [3fpye] Test executed: should render No Fields when there are no fields in farm\n',
    '2022-01-04T01:22:26.118Z workers Sandbox (active) [3fpye] error: Cannot use import statement outside a module\n',
    '2022-01-04T01:22:26.125Z workers [3fpye] Run 2 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:26.157Z workers Jest Test Run Complete (3fpye): 2022-01-04T01:22:26.081Z\n',
    '2022-01-04T01:22:26.157Z workers [3fpye] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:26.922Z workers [f37mh] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:26.923Z workers [f37mh] Test executed: should render highlighted content and match any casing\n',
    '2022-01-04T01:22:26.923Z workers [f37mh] Test executed: should not have highlighted text\n',
    '2022-01-04T01:22:26.948Z workers [f37mh] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:26.948Z workers [f37mh] Test executed: renders without errors\n',
    '2022-01-04T01:22:26.951Z workers [f37mh] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:26.951Z workers [f37mh] Test executed: Hides Terms and Conditions initially. \n',
    '2022-01-04T01:22:26.951Z workers [f37mh] Test executed: Shows Terms and Conditions when user clicks show button. \n',
    '2022-01-04T01:22:26.951Z workers [f37mh] Test executed: It updates agreedToTerms in join projects drawer when checkbox is clicked \n',
    '2022-01-04T01:22:26.958Z workers [f37mh] Run 6 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:26.958Z workers Jest Test Run Complete (f37mh): 2022-01-04T01:22:26.904Z\n',
    '2022-01-04T01:22:26.959Z workers [f37mh] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:28.304Z workers [h348t] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.305Z workers [h348t] Test executed: renders correctly without errors\n',
    '2022-01-04T01:22:28.305Z workers [h348t] Test executed: renders blue border when selected\n',
    '2022-01-04T01:22:28.305Z workers [h348t] Test executed: renders does not render checkbox for single select\n',
    '2022-01-04T01:22:28.305Z workers [h348t] Test executed: renders no blue border when not selected\n',
    '2022-01-04T01:22:28.306Z workers [h348t] Test executed: renders checkbox for multi select\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: renders Target Committed Area section if values exist\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: does not render Target Committed Area section if no values exist\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: Renders start and end dates section if exist\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: Renders start and end dates section if exist\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: Renders subcrop names if specificCropIds value exists\n',
    '2022-01-04T01:22:28.346Z workers [h348t] Test executed: Renders crop name if specificCropIds value does not exist\n',
    '2022-01-04T01:22:28.350Z workers [h348t] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.350Z workers [h348t] Test executed: renders the contract portion\n',
    '2022-01-04T01:22:28.350Z workers [h348t] Test executed: renders a button to sign contract and a status indicator when contract status is false\n',
    '2022-01-04T01:22:28.350Z workers [h348t] Test executed: renders no button when contract status is true\n',
    '2022-01-04T01:22:28.350Z workers [h348t] Test executed: when "Sign Contract" button is clicked, the state for the contract changes to true and so do the styles\n',
    '2022-01-04T01:22:28.358Z workers [h348t] Run 15 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:28.358Z workers Jest Test Run Complete (h348t): 2022-01-04T01:22:28.289Z\n',
    '2022-01-04T01:22:28.359Z workers [h348t] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:28.927Z workers [jyhe3] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.927Z workers [jyhe3] Test executed: Should render farms and fields\n',
    '2022-01-04T01:22:28.927Z workers [jyhe3] Test executed: Should show no entity label for the farm with no fields\n',
    '2022-01-04T01:22:28.927Z workers [jyhe3] Test executed: Should render shared farms and fields\n',
    '2022-01-04T01:22:28.928Z workers [jyhe3] Test executed: Should show selected entity when selectedId provided\n',
    '2022-01-04T01:22:28.928Z workers [jyhe3] Test executed: Should not show selected entity when no selectedId provided\n',
    '2022-01-04T01:22:28.928Z workers [jyhe3] Test executed: Should show No Fields for farm with no fields\n',
    '2022-01-04T01:22:28.928Z workers [jyhe3] Test executed: should not render field if it does not match search term\n',
    '2022-01-04T01:22:28.928Z workers [jyhe3] Test executed: should show no results screen if search term does not match any entities\n',
    '2022-01-04T01:22:28.940Z workers [jyhe3] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.941Z workers [jyhe3] Test executed: Renders PasswordResetForm component\n',
    '2022-01-04T01:22:28.968Z workers [jyhe3] Loaded unknown number of test(s)\n',
    '2022-01-04T01:22:28.968Z workers [jyhe3] Test executed: renders without address\n',
    '2022-01-04T01:22:28.968Z workers [jyhe3] Test executed: renders with address\n',
    '2022-01-04T01:22:28.968Z workers [jyhe3] Test executed: renders form when click "edit" button\n',
    '2022-01-04T01:22:28.969Z workers [jyhe3] Test executed: renders form when any required address fields are missing\n',
    '2022-01-04T01:22:28.976Z workers [jyhe3] Run 13 test(s), skipped 0 test(s)\n',
    '2022-01-04T01:22:28.977Z workers Jest Test Run Complete (jyhe3): 2022-01-04T01:22:28.913Z\n',
    '2022-01-04T01:22:28.977Z workers [jyhe3] Sandbox is responsive, closing it\n',
    '2022-01-04T01:22:28.978Z workers Merging parallel test run results\n',
    '2022-01-04T01:22:28.984Z project Test run finished\n',
    '2022-01-04T01:22:28.984Z project Processed console.log entries\n',
    '2022-01-04T01:22:28.985Z project Processed loading sequences\n',
    '2022-01-04T01:22:28.986Z project Test name duplicate: Renders start and end dates section if exist\n',
    '2022-01-04T01:22:28.986Z project Processed executed tests\n',
    '2022-01-04T01:22:29.007Z project Processed code coverage\n',
    '2022-01-04T01:22:30.469Z project Test run result processed and sent to IDE\n'
  ]
}
ArtemGovorov commented 2 years ago

Can you please share your test script from your package.json, your jest config file and your babel config?

aubrey-ford-nutrien commented 2 years ago
"scripts": {
    "build": "react-app-rewired --max_old_space_size=4096 build",
    "create:env": "node -r fs -e \"fs.copyFileSync('.env.sample', '.env', fs.constants.COPYFILE_EXCL)\"",
    "eject": "react-scripts eject",
    "lighthouse": "node lighthouse",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "lint:staged": "lint-staged",
    "start": "react-app-rewired start",
    "start:dev": "react-app-rewired start",
    "storybook": "start-storybook -p 9009 -s public",
    "storybook:build": "build-storybook -s public",
    "pretest": "babel node_modules/ol/ --out-dir src/__mocks__/ol --presets \"@babel/preset-env\"",
    "test": "cross-env TZ=UTC CI=true FORCE_COLOR=true react-scripts test --env=jsdom --coverage",
    "posttest": "rimraf src/__mocks__/ol",
    "pretest:watch": "npm run pretest",
    "test:watch": "react-scripts test --env=jsdom",
    "posttest:watch": "npm run posttest",
    "test:debug": "react-scripts --inspect-brk test --runInBand --no-cache --env=jsdom",
    "preinstall": "npx npm-force-resolutions"
  }

JEST CONFIG:

"jest": {
    "collectCoverageFrom": [
      "src/**",
      "!src/helpers/entities.mock.js",
      "!**/*.json",
      "!**/*.stories.js"
    ]
  }

BABEL CONFIG:

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "useBuiltIns": "usage",
        "corejs": 3,
        "shippedProposals": true
      }
    ],
    "@babel/preset-react",
    "module:metro-react-native-babel-preset"
  ],
  "plugins": [
    [
      "@babel/plugin-transform-runtime",
      {
        "corejs": {
          "version": 3,
          "proposals": true
        },
        "helpers": true,
        "version": "^7.13.15"
      }
    ]
  ]
}
ArtemGovorov commented 2 years ago

Thanks for providing the details. We have created this sample repo with your dependencies, configs and a simple Signup test and Wallaby is working as expected.

Can you please clone the repo, run npm i and run Wallaby to see if it's working for you? If it's working, please try running npx jest --clearCache and restarting Wallaby in your real repo to see if it helps.

If the sample repo is working and cache reset in your project doesn't help, we will need a repro of the issue, that should hopefully be relatively simple to create. You may either try adding the details that we are missing to reproduce to our sample repo, or simply copy/paste your project to a new folder, delete all source code except the failing test and configs (so that the issue is still reproducible) and share it with us either via Github or via hello@wallabyjs.com.

aubrey-ford-nutrien commented 2 years ago

Just pushed a new commit with the package that is causing the problem. It is pulled in through a proprietary dependency in the real repo, but this does the same thing. It gives the same error with Wallaby but running the test script works fine.

ArtemGovorov commented 2 years ago

Just pushed a new commit with the package that is causing the problem.

I can't see any pull requests with the mentioned commit in the sample repo https://github.com/wallabyjs/wallaby-2897. Have you forked it or created a separate repo? Can you please share it?

aubrey-ford-nutrien commented 2 years ago

Sorry here you go: https://github.com/aubrey-ford-nutrien/wallaby-2897

aubrey-ford-nutrien commented 2 years ago

Also created pull request. I'm guessing it has something to do with the pretest hook. Maybe older version of Wallaby/IntelliJ ran the pretest hook and now it doesn't? I've been running those same tests for months with no issue and none of that codee has changed...

ArtemGovorov commented 2 years ago

Thanks for sharing the repo and creating the pull request. We can reproduce the issue now, but it doesn't seem to be Wallaby specific, because running npm run test in your repo is producing the same result:

Screen Shot 2022-01-06 at 10 16 07 am

Please note that I had to add SKIP_PREFLIGHT_CHECK=true env var to the test command to run it because it was complaining about incompatible babel-jest version: "test": "cross-env TZ=UTC CI=true SKIP_PREFLIGHT_CHECK=true FORCE_COLOR=true react-scripts test --env=jsdom --coverage",

aubrey-ford-nutrien commented 2 years ago

Works fine for me. Didn't need to add the SKIP_PREFLIGHT_CHECK: image

ArtemGovorov commented 2 years ago

Oh, in my case neither pretest nor posttest hooks run when I run npm run test for some reason. If I run the pretest hook manually, then npm run test starts working for me, but so does Wallaby - it also works once I run npm run pretest (and don't run posttest afterwards).

Maybe older version of Wallaby/IntelliJ ran the pretest hook and now it doesn't?

Wallaby never ran pretest hook. It doesn't run/use any of your package.json scripts. My guess is that maybe in your case the "posttest" hook (that deletes the results of the pretest hook required for the successful run) was missing (or recently added)?

There are a few possible solutions in your case:

aubrey-ford-nutrien commented 2 years ago

Ah you're right. It must have something to do with how I was running the test script and posttest wasn't being run. Thanks for your help, not sure how I didn't see that myself. It's been a crazy week.

ArtemGovorov commented 2 years ago

No worries, glad that we have sorted the issue out for you.