wallabyjs / public

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

Next js - Runtime error: Failed to initialize wallaby jest. m is not defined #2792

Closed rosshulford closed 3 years ago

rosshulford commented 3 years ago

On Westorm using automatic config.

Runtime error: Failed to initialize wallaby jest. m is not defined

Thanks,

Ross

{
  editorVersion: 'WebStorm 2021.2',
  pluginVersion: '1.0.222',
  editorType: 'IntelliJ',
  osVersion: 'darwin 20.6.0',
  nodeVersion: 'v12.22.1',
  coreVersion: '1.0.1059',
  checksum: 'NTIyYzZkNzcyZjYxZTA2YjBmNDhiNTlhNWU0M2EwNTksMTYxNzkyNjQwMDAwMCww',
  config: {
    diagnostics: {
      jest: {
        config: {
          configs: [
            {
              automock: false,
              cache: true,
              cacheDirectory: '/private/var/folders/y2/j4qngwwn1q3d4_41ppdr701w0000gn/T/jest_dx',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '/node_modules/' ],
              cwd: '<homeDir>/Sites/test-next-app',
              dependencyExtractor: undefined,
              detectLeaks: false,
              detectOpenHandles: false,
              displayName: undefined,
              errorOnDeprecated: false,
              extensionsToTreatAsEsm: [],
              extraGlobals: [],
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: {},
              haste: { computeSha1: false, enableSymlinks: false, forceNodeFilesystemAPI: false, throwOnModuleCollision: false },
              injectGlobals: true,
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'js', 'jsx', 'ts', 'tsx', 'json', 'node' ],
              moduleLoader: undefined,
              moduleNameMapper: [
                [ '^.+\\.module\\.(css|sass|scss)$', 'identity-obj-proxy' ],
                [ '^@/components/(.*)$', '<homeDir>/Sites/test-next-app/components/$1' ],
                [ '^.+\\.(css|sass|scss)$', '<homeDir>/Sites/test-next-app/__mocks__/styleMock.js' ],
                [ '^.+\\.(jpg|jpeg|png|gif|webp|svg)$', '<homeDir>/Sites/test-next-app/__mocks__/fileMock.js' ]
              ],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: '7df25154232d9fdcb7bc6c3fe53dae24',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: undefined,
              restoreMocks: false,
              rootDir: '<homeDir>/Sites/test-next-app',
              roots: [ '<homeDir>/Sites/test-next-app' ],
              runner: '<homeDir>/Sites/test-next-app/node_modules/jest-runner/build/index.js',
              setupFiles: [],
              setupFilesAfterEnv: [ '<homeDir>/Sites/test-next-app/jest.setup.js' ],
              skipFilter: false,
              skipNodeResolution: undefined,
              slowTestThreshold: 5,
              snapshotFormat: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [],
              testEnvironment: '<homeDir>/Sites/test-next-app/node_modules/jest-environment-jsdom/build/index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
              testPathIgnorePatterns: [ '<homeDir>/Sites/test-next-app/node_modules/', '<homeDir>/Sites/test-next-app/.next/', '<homeDir>/Sites/test-next-app/cypress/' ],
              testRegex: [],
              testRunner: '<homeDir>/Sites/test-next-app/node_modules/jest-circus/runner.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [
                [ '^.+\\.(js|jsx|ts|tsx)$', '<homeDir>/Sites/test-next-app/node_modules/babel-jest/build/index.js', { presets: [ 'next/babel' ] } ]
              ],
              transformIgnorePatterns: [ '/node_modules/', '^.+\\.module\\.(css|sass|scss)$' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: [ '**/*.{js,jsx,ts,tsx}', '!**/*.d.ts', '!**/node_modules/**' ],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: '<homeDir>/Sites/test-next-app/coverage',
            coverageProvider: 'babel',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: undefined,
            detectLeaks: false,
            detectOpenHandles: false,
            errorOnDeprecated: false,
            expand: false,
            filter: undefined,
            findRelatedTests: false,
            forceExit: false,
            globalSetup: undefined,
            globalTeardown: undefined,
            json: false,
            lastCommit: false,
            listTests: false,
            logHeapUsage: false,
            maxConcurrency: 5,
            maxWorkers: 15,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: false,
            onlyFailures: false,
            outputFile: undefined,
            passWithNoTests: false,
            projects: [],
            replname: undefined,
            reporters: undefined,
            rootDir: '<homeDir>/Sites/test-next-app',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            snapshotFormat: undefined,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: undefined,
            testSequencer: '<homeDir>/Sites/test-next-app/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/|/\\..+/', '\\./node_modules/', '\\./.next/', '\\./cypress/' ],
            testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|/\\..+/', '\\./node_modules/', '\\./.next/', '\\./cypress/' ],
            testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
            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: [ '**/*.{js,jsx,ts,tsx}', '!**/*.d.ts', '!**/node_modules/**' ],
    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: '\\./node_modules/', regexp: /\.\/node_modules\//, ignore: true, trigger: true, load: true },
      { pattern: '\\./.next/', regexp: /\.\/.next\//, ignore: true, trigger: true, load: true },
      { pattern: '\\./cypress/', regexp: /\.\/cypress\//, ignore: true, trigger: true, load: true },
      { pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: true, trigger: true, load: true },
      { pattern: '**/?(*.)+(spec|test).[tj]s?(x)', 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: '\\./node_modules/', regexp: /\.\/node_modules\//, ignore: true, trigger: true, load: true, test: true },
      { pattern: '\\./.next/', regexp: /\.\/.next\//, ignore: true, trigger: true, load: true, test: true },
      { pattern: '\\./cypress/', regexp: /\.\/cypress\//, ignore: true, trigger: true, load: true, test: true },
      { pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 },
      { pattern: '**/?(*.)+(spec|test).[tj]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 3 }
    ],
    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: '/usr/local/Cellar/node@12/12.22.1_1/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#1437699356'
  },
  packageJSON: {
    dependencies: {
      '@reduxjs/toolkit': '^1.6.1',
      next: '11.1.2',
      react: '17.0.2',
      'react-dom': '17.0.2',
      'react-redux': '^7.2.5',
      redux: '^4.1.1',
      'redux-persist': '^6.0.0',
      'redux-thunk': '^2.3.0',
      sass: '^1.39.0'
    },
    devDependencies: {
      '@testing-library/jest-dom': '^5.14.1',
      '@testing-library/react': '^12.0.0',
      '@types/react': '17.0.20',
      'babel-jest': '^27.1.0',
      eslint: '7.32.0',
      'eslint-config-next': '11.1.2',
      'identity-obj-proxy': '^3.0.0',
      jest: '^27.1.0',
      'react-test-renderer': '^17.0.2',
      typescript: '4.4.2'
    }
  },
  fs: { numberOfFiles: 32 },
  debug: [
    '2021-09-07T12:24:05.788Z angular/cli config Angular CLI not found.\n',
    '2021-09-07T12:24:05.879Z jest/config Detected Jest.\n',
    '2021-09-07T12:24:05.879Z jest/config Configured Jest.\n',
    '2021-09-07T12:24:05.880Z project Wallaby Node version: v12.22.1\n',
    '2021-09-07T12:24:05.880Z project Wallaby config: <homeDir>/Sites/test-next-app/auto.detect\n',
    '2021-09-07T12:24:05.943Z project File cache: <homeDir>/Library/Caches/JetBrains/WebStorm2021.2/wallaby/projects/cb65bd1c6791e858\n',
    '2021-09-07T12:24:06.004Z uiService Listening port 51235\n',
    '2021-09-07T12:24:06.006Z project package.json file change detected, invalidating local cache\n',
    '2021-09-07T12:24:06.023Z workers Parallelism for initial run: 14, for regular run: 7\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #0\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #1\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #2\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #3\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #4\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #5\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #6\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #7\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #8\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #9\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #10\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #11\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #12\n',
    '2021-09-07T12:24:06.023Z workers Starting run worker instance #13\n',
    '2021-09-07T12:24:06.024Z workers Web server is listening at 54314\n',
    '2021-09-07T12:24:06.024Z project File cache requires some updates, waiting required files from IDE\n',
    '2021-09-07T12:24:06.109Z project Stopping process pool\n',
    '2021-09-07T12:24:06.112Z project Test run started; run priority: 3\n',
    '2021-09-07T12:24:06.114Z project Running all tests\n',
    '2021-09-07T12:24:06.116Z workers Starting test run, priority: 3\n',
    '2021-09-07T12:24:06.117Z nodeRunner Starting sandbox [worker #0, session #50har]\n',
    '2021-09-07T12:24:06.117Z nodeRunner Preparing sandbox [worker #0, session #50har]\n',
    '2021-09-07T12:24:06.234Z workers Started run worker instance (delayed) #0\n',
    '2021-09-07T12:24:06.235Z nodeRunner Prepared sandbox [worker #0, session #50har]\n',
    '2021-09-07T12:24:06.235Z workers [worker #0, session #50har] Running tests in sandbox\n',
    '2021-09-07T12:24:06.241Z workers Started run worker instance (delayed) #1\n',
    '2021-09-07T12:24:06.242Z workers Started run worker instance (delayed) #3\n',
    '2021-09-07T12:24:06.242Z workers Started run worker instance (delayed) #2\n',
    '2021-09-07T12:24:06.249Z workers Started run worker instance (delayed) #4\n',
    '2021-09-07T12:24:06.250Z workers Started run worker instance (delayed) #5\n',
    '2021-09-07T12:24:06.256Z workers Started run worker instance (delayed) #6\n',
    '2021-09-07T12:24:06.259Z workers Started run worker instance (delayed) #7\n',
    '2021-09-07T12:24:06.264Z workers Started run worker instance (delayed) #8\n',
    '2021-09-07T12:24:06.267Z workers Started run worker instance (delayed) #10\n',
    '2021-09-07T12:24:06.268Z workers Started run worker instance (delayed) #9\n',
    '2021-09-07T12:24:06.276Z workers Started run worker instance (delayed) #11\n',
    '2021-09-07T12:24:06.279Z workers Started run worker instance (delayed) #12\n',
    '2021-09-07T12:24:06.287Z workers Started run worker instance (delayed) #13\n',
    '2021-09-07T12:24:06.416Z workers Sandbox (active) [50har] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:24:06.521Z workers [50har] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:24:06.524Z workers [50har] Sandbox is responsive, closing it\n',
    '2021-09-07T12:24:06.525Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:24:06.526Z project Test run finished\n',
    '2021-09-07T12:24:06.526Z project Processed console.log entries\n',
    '2021-09-07T12:24:06.526Z project Processed loading sequences\n',
    '2021-09-07T12:24:06.526Z project Processed executed tests\n',
    '2021-09-07T12:24:06.527Z project Processed code coverage\n',
    '2021-09-07T12:24:06.566Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:24:26.705Z fs File deleted: .git/.watchman-cookie-Rosss-MacBook-Pro.local-41035-46\n',
    '2021-09-07T12:24:26.705Z fs No metadata for deleted file found: .git/.watchman-cookie-Rosss-MacBook-Pro.local-41035-46\n',
    '2021-09-07T12:27:22.997Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:23.001Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:23.001Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:23.006Z project Test run started; run priority: 2\n',
    '2021-09-07T12:27:23.006Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-09-07T12:27:23.007Z workers Starting test run, priority: 2\n',
    '2021-09-07T12:27:23.007Z nodeRunner Starting sandbox [worker #0, session #wi1vd]\n',
    '2021-09-07T12:27:23.007Z nodeRunner Preparing sandbox [worker #0, session #wi1vd]\n',
    '2021-09-07T12:27:23.007Z nodeRunner Prepared sandbox [worker #0, session #wi1vd]\n',
    '2021-09-07T12:27:23.007Z workers [worker #0, session #wi1vd] Running tests in sandbox\n',
    '2021-09-07T12:27:23.068Z workers Sandbox (active) [wi1vd] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:27:23.172Z workers [wi1vd] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:27:23.175Z workers [wi1vd] Sandbox is responsive, closing it\n',
    '2021-09-07T12:27:23.175Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:27:23.176Z project Test run finished\n',
    '2021-09-07T12:27:23.176Z project Processed console.log entries\n',
    '2021-09-07T12:27:23.176Z project Processed loading sequences\n',
    '2021-09-07T12:27:23.176Z project Processed executed tests\n',
    '2021-09-07T12:27:23.176Z project Processed code coverage\n',
    '2021-09-07T12:27:23.177Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:27:26.532Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:26.533Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:26.533Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:26.537Z project Test run started; run priority: 2\n',
    '2021-09-07T12:27:26.537Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-09-07T12:27:26.538Z workers Starting test run, priority: 2\n',
    '2021-09-07T12:27:26.538Z nodeRunner Starting sandbox [worker #0, session #i2i1b]\n',
    '2021-09-07T12:27:26.538Z nodeRunner Preparing sandbox [worker #0, session #i2i1b]\n',
    '2021-09-07T12:27:26.538Z nodeRunner Prepared sandbox [worker #0, session #i2i1b]\n',
    '2021-09-07T12:27:26.538Z workers [worker #0, session #i2i1b] Running tests in sandbox\n',
    '2021-09-07T12:27:26.597Z workers Sandbox (active) [i2i1b] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:27:26.697Z workers [i2i1b] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:27:26.699Z workers [i2i1b] Sandbox is responsive, closing it\n',
    '2021-09-07T12:27:26.700Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:27:26.701Z project Test run finished\n',
    '2021-09-07T12:27:26.701Z project Processed console.log entries\n',
    '2021-09-07T12:27:26.701Z project Processed loading sequences\n',
    '2021-09-07T12:27:26.701Z project Processed executed tests\n',
    '2021-09-07T12:27:26.701Z project Processed code coverage\n',
    '2021-09-07T12:27:26.702Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:27:26.921Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:26.922Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:26.922Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:26.926Z project Test run started; run priority: 2\n',
    '2021-09-07T12:27:26.926Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-09-07T12:27:26.926Z workers Starting test run, priority: 2\n',
    '2021-09-07T12:27:26.926Z nodeRunner Starting sandbox [worker #0, session #r76g8]\n',
    '2021-09-07T12:27:26.926Z nodeRunner Preparing sandbox [worker #0, session #r76g8]\n',
    '2021-09-07T12:27:26.926Z nodeRunner Prepared sandbox [worker #0, session #r76g8]\n',
    '2021-09-07T12:27:26.926Z workers [worker #0, session #r76g8] Running tests in sandbox\n',
    '2021-09-07T12:27:26.983Z workers Sandbox (active) [r76g8] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:27:27.088Z workers [r76g8] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:27:27.089Z workers [r76g8] Sandbox is responsive, closing it\n',
    '2021-09-07T12:27:27.089Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:27:27.090Z project Test run finished\n',
    '2021-09-07T12:27:27.090Z project Processed console.log entries\n',
    '2021-09-07T12:27:27.090Z project Processed loading sequences\n',
    '2021-09-07T12:27:27.090Z project Processed executed tests\n',
    '2021-09-07T12:27:27.090Z project Processed code coverage\n',
    '2021-09-07T12:27:27.090Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:27:27.235Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:27.237Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:27.237Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:27.241Z project Test run started; run priority: 2\n',
    '2021-09-07T12:27:27.241Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-09-07T12:27:27.242Z workers Starting test run, priority: 2\n',
    '2021-09-07T12:27:27.242Z nodeRunner Starting sandbox [worker #0, session #drzh7]\n',
    '2021-09-07T12:27:27.242Z nodeRunner Preparing sandbox [worker #0, session #drzh7]\n',
    '2021-09-07T12:27:27.242Z nodeRunner Prepared sandbox [worker #0, session #drzh7]\n',
    '2021-09-07T12:27:27.242Z workers [worker #0, session #drzh7] Running tests in sandbox\n',
    '2021-09-07T12:27:27.299Z workers Sandbox (active) [drzh7] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:27:27.403Z workers [drzh7] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:27:27.405Z workers [drzh7] Sandbox is responsive, closing it\n',
    '2021-09-07T12:27:27.406Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:27:27.406Z project Test run finished\n',
    '2021-09-07T12:27:27.406Z project Processed console.log entries\n',
    '2021-09-07T12:27:27.406Z project Processed loading sequences\n',
    '2021-09-07T12:27:27.406Z project Processed executed tests\n',
    '2021-09-07T12:27:27.406Z project Processed code coverage\n',
    '2021-09-07T12:27:27.407Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:27:27.689Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:27.690Z fs File changed in editor: __tests__/index.test.js\n',
    '2021-09-07T12:27:27.690Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:27.694Z project Test run started; run priority: 2\n',
    '2021-09-07T12:27:27.694Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-09-07T12:27:27.695Z workers Starting test run, priority: 2\n',
    '2021-09-07T12:27:27.695Z nodeRunner Starting sandbox [worker #0, session #gv58g]\n',
    '2021-09-07T12:27:27.696Z nodeRunner Preparing sandbox [worker #0, session #gv58g]\n',
    '2021-09-07T12:27:27.696Z nodeRunner Prepared sandbox [worker #0, session #gv58g]\n',
    '2021-09-07T12:27:27.696Z workers [worker #0, session #gv58g] Running tests in sandbox\n',
    '2021-09-07T12:27:27.754Z workers Sandbox (active) [gv58g] error: Failed to initialize wallaby jest.\nm is not defined\n',
    '2021-09-07T12:27:27.856Z workers [gv58g] Run 0 test(s), skipped 0 test(s)\n',
    '2021-09-07T12:27:27.858Z workers [gv58g] Sandbox is responsive, closing it\n',
    '2021-09-07T12:27:27.859Z workers Failed to map the stack to user code, entry message: Failed to initialize wallaby jest.\n' +
      'm is not defined, stack: Failed to initialize wallaby jest.\n' +
      'm is not defined\n',
    '2021-09-07T12:27:27.859Z project Test run finished\n',
    '2021-09-07T12:27:27.859Z project Processed console.log entries\n',
    '2021-09-07T12:27:27.859Z project Processed loading sequences\n',
    '2021-09-07T12:27:27.859Z project Processed executed tests\n',
    '2021-09-07T12:27:27.859Z project Processed code coverage\n',
    '2021-09-07T12:27:27.860Z project Test run result processed and sent to IDE\n',
    '2021-09-07T12:27:28.402Z fs File changed: __tests__/index.test.js\n',
    '2021-09-07T12:27:28.402Z fs No metadata for added file found: .idea/workspace.xml\n',
    '2021-09-07T12:27:28.402Z fs No changes detected for __tests__/index.test.js\n',
    '2021-09-07T12:27:28.402Z extended-core File was not changed, but file markers may need to be synced\n',
    '2021-09-07T12:39:00.666Z fs File changed: .idea/workspace.xml\n',
    '2021-09-07T12:39:00.666Z fs No metadata for changed file found: .idea/workspace.xml\n',
    '2021-09-07T12:46:22.922Z fs File changed: .idea/workspace.xml\n',
    '2021-09-07T12:46:22.922Z fs No metadata for changed file found: .idea/workspace.xml\n'
  ]
}
smcenlly commented 3 years ago

Thanks for providing your diagnostics report. It looks like you are on an older version of Wallaby that doesn't support the version of jest that you are using. The version of Wallaby you are using is 1.0.1059 while the latest version is 1.0.1141.

Could you please try updating Wallaby? If you have a valid license, you should be able to do this by closing all instances of WebStorm and restarting Wallaby. At that point, it should update for you.

If your license has expired, you will be version locked to the last version that was available for your license. If this is the case for you, you may request a trial license to confirm that the latest version fixes your problem, or else email us (hello@wallabyjs.com).

ianjamieson commented 1 year ago

For anyone else, I was encountering the same issue. I had an old license meaning I was using an old incompatible version of Wallaby. Upgraded my license and all was working.