wallabyjs / public

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

got error: Cannot use import statement outside a module​​ #3110

Closed deni5n closed 1 year ago

deni5n commented 1 year ago

Issue description or question

SyntaxError: Cannot use import statement outside a module​​

Wallaby diagnostics report

{
  editorVersion: '1.73.1',
  pluginVersion: '1.0.348',
  editorType: 'VSCode',
  osVersion: 'linux 5.15.0-53-generic',
  nodeVersion: 'v16.15.0',
  coreVersion: '1.0.1346',
  checksum: 'YjUwZTc2NGQ0YjhmNzdkOGFlZTc3NTBlYTE3MmQ3MTEsMTcwMDY5NzYwMDAwMCww',
  config: {
    diagnostics: {
      jest: {
        config: {
          configs: [
            {
              automock: false,
              cache: true,
              cacheDirectory: '/tmp/jest_rs',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '/node_modules/' ],
              cwd: '<homeDir>/project/frunze62Bot/app',
              dependencyExtractor: undefined,
              detectLeaks: false,
              detectOpenHandles: false,
              displayName: undefined,
              errorOnDeprecated: false,
              extensionsToTreatAsEsm: [],
              fakeTimers: { enableGlobally: false },
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: {},
              haste: { computeSha1: false, enableSymlinks: false, forceNodeFilesystemAPI: true, throwOnModuleCollision: false },
              id: '292f7a9b2f0ef1bd258fa9707b732484',
              injectGlobals: true,
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [
                'js',   'mjs',
                'cjs',  'jsx',
                'ts',   'tsx',
                'json', 'node'
              ],
              moduleNameMapper: [],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: undefined,
              restoreMocks: false,
              rootDir: '<homeDir>/project/frunze62Bot/app',
              roots: [ '<homeDir>/project/frunze62Bot/app' ],
              runner: '<homeDir>/project/frunze62Bot/app/node_modules/jest-runner/build/index.js',
              runtime: undefined,
              sandboxInjectedGlobals: [],
              setupFiles: [],
              setupFilesAfterEnv: [],
              skipFilter: false,
              skipNodeResolution: undefined,
              slowTestThreshold: 5,
              snapshotFormat: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [],
              testEnvironment: '<homeDir>/project/frunze62Bot/app/node_modules/jest-environment-node/build/index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ '**/tests/**/*.[jt]s?(x)' ],
              testPathIgnorePatterns: [ '/node_modules/', '<homeDir>/project/frunze62Bot/app/tests/helper.js' ],
              testRegex: [],
              testRunner: '<homeDir>/project/frunze62Bot/app/node_modules/jest-circus/runner.js',
              transform: [],
              transformIgnorePatterns: [ '/node_modules/', '\\.pnp\\.[^\\/]+$' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            ci: false,
            collectCoverage: false,
            collectCoverageFrom: [],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: '<homeDir>/project/frunze62Bot/app/coverage',
            coverageProvider: 'v8',
            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>/project/frunze62Bot/app',
            runTestsByPath: false,
            shard: undefined,
            silent: undefined,
            skipFilter: false,
            snapshotFormat: undefined,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: undefined,
            testSequencer: '<homeDir>/project/frunze62Bot/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/|\\./git/|/\\..+/', '/tmp/jest_rs', '\\./tests/helper.js', '\\./coverage' ],
            testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/', '/tmp/jest_rs', '\\./tests/helper.js', '\\./coverage' ],
            testMatch: [ '**/tests/**/*.[jt]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: [],
    filesWithNoCoverageCalculated: [],
    globalSetup: false,
    dot: true,
    files: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, file: true, test: true },
      {
        pattern: '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/',
        regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\.\/git\/|\/\..+\//,
        ignore: true,
        trigger: true,
        load: true,
        file: true,
        test: true
      },
      { pattern: '/tmp/jest_rs', regexp: /\/tmp\/jest_rs/, ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '\\./tests/helper.js', regexp: /\.\/tests\/helper.js/, ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '\\./coverage', regexp: /\.\/coverage/, ignore: true, trigger: true, load: true, file: true, test: true },
      { pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: '**/tests/**/*.[jt]s?(x)', ignore: true, trigger: true, load: true, file: true }
    ],
    tests: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, test: true, file: false },
      {
        pattern: '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/',
        regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\.\/git\/|\/\..+\//,
        ignore: true,
        trigger: true,
        load: true,
        test: true,
        file: false
      },
      { pattern: '/tmp/jest_rs', regexp: /\/tmp\/jest_rs/, ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '\\./tests/helper.js', regexp: /\.\/tests\/helper.js/, ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '\\./coverage', regexp: /\.\/coverage/, ignore: true, trigger: true, load: true, test: true, file: false },
      { pattern: '**/tests/**/*.[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 }
    ],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    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: false,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    env: { type: 'node', params: {}, runner: '<homeDir>/.nvm/versions/node/v16.15.0/bin/node', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    runAllTestsWhenNoAffectedTests: false,
    configCode: 'auto.detect#-852879425'
  },
  packageJSON: {
    dependencies: { axios: '^0.27.2', dateformat: '^5.0.3', dotenv: '^16.0.0', exceljs: '^4.3.0', knex: '^2.0.0', objection: '^3.0.1', sqlite3: '^5.0.8', telegraf: '^4.8.1', unzipper: '^0.10.11' },
    devDependencies: {
      '@babel/eslint-parser': '^7.17.0',
      '@jest/globals': '^28.1.0',
      eslint: '^8.15.0',
      'eslint-config-prettier': '^8.5.0',
      'eslint-config-standard': '^17.0.0',
      'eslint-plugin-import': '^2.25.4',
      'eslint-plugin-jest': '^26.1.5',
      'eslint-plugin-node': '^11.1.0',
      'eslint-plugin-prettier': '^4.0.0',
      'eslint-plugin-promise': '^6.0.0',
      jest: '^28.1.0',
      nodemon: '^2.0.15',
      prettier: '^2.6.1'
    }
  },
  fs: { numberOfFiles: 41 },
  debug: [
    '2022-11-25T16:44:33.093Z config Attempting automatic configuration for angular\n',
    '2022-11-25T16:44:33.095Z angular/cli config Angular CLI not found.\n',
    '2022-11-25T16:44:33.095Z config Finished attempting automatic configuration for angular (3ms)\n',
    '2022-11-25T16:44:33.095Z config Attempting automatic configuration for jest\n',
    '2022-11-25T16:44:33.196Z jest/config Detected Jest.\n',
    '2022-11-25T16:44:33.197Z jest/config Configured Jest.\n',
    '2022-11-25T16:44:33.197Z config Finished attempting automatic configuration for jest (102ms)\n',
    '2022-11-25T16:44:33.198Z project Wallaby Node version: v16.15.0\n',
    '2022-11-25T16:44:33.198Z project Wallaby config: <homeDir>/project/frunze62Bot/app/auto.detect\n',
    '2022-11-25T16:44:33.206Z fs File system starting\n',
    '2022-11-25T16:44:33.237Z fs File system scan completed\n',
    '2022-11-25T16:44:33.242Z project File cache: <homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/projects/5ac28983aa2e8efa\n',
    '2022-11-25T16:44:33.246Z uiService Listening port 51236\n',
    '2022-11-25T16:44:33.251Z workers Parallelism for initial run: 14, for regular run: 7\n',
    '2022-11-25T16:44:33.251Z workers Starting run worker instance #0\n',
    '2022-11-25T16:44:33.251Z workers Starting run worker instance #1\n',
    '2022-11-25T16:44:33.251Z workers Starting run worker instance #2\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #3\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #4\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #5\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #6\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #7\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #8\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #9\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #10\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #11\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #12\n',
    '2022-11-25T16:44:33.252Z workers Starting run worker instance #13\n',
    '2022-11-25T16:44:33.252Z workers Web server is listening at 32813\n',
    '2022-11-25T16:44:33.317Z project Stopping process pool\n',
    '2022-11-25T16:44:33.317Z project File cache is up-to-date, starting full test run\n',
    '2022-11-25T16:44:33.319Z project Test run started; run priority: 3\n',
    '2022-11-25T16:44:33.320Z project Running all tests\n',
    '2022-11-25T16:44:33.322Z workers Starting test run, priority: 3\n',
    '2022-11-25T16:44:33.323Z workers Distributing tests between 14 workers\n',
    '2022-11-25T16:44:33.323Z workers Running tests in parallel\n',
    '2022-11-25T16:44:33.324Z nodeRunner Starting sandbox [worker #0, session #rz5ku]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Starting sandbox [worker #1, session #1amb7]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Starting sandbox [worker #2, session #t7uei]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Starting sandbox [worker #3, session #kb0i0]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Starting sandbox [worker #4, session #vx8mm]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Preparing sandbox [worker #0, session #rz5ku]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Preparing sandbox [worker #1, session #1amb7]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Preparing sandbox [worker #2, session #t7uei]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Preparing sandbox [worker #3, session #kb0i0]\n',
    '2022-11-25T16:44:33.324Z nodeRunner Preparing sandbox [worker #4, session #vx8mm]\n',
    '2022-11-25T16:44:33.431Z workers Started run worker instance (delayed) #0\n',
    '2022-11-25T16:44:33.431Z nodeRunner Prepared sandbox [worker #0, session #rz5ku]\n',
    '2022-11-25T16:44:33.431Z workers [worker #0, session #rz5ku] Running tests in sandbox\n',
    '2022-11-25T16:44:33.451Z workers Started run worker instance (delayed) #1\n',
    '2022-11-25T16:44:33.451Z nodeRunner Prepared sandbox [worker #1, session #1amb7]\n',
    '2022-11-25T16:44:33.451Z workers [worker #1, session #1amb7] Running tests in sandbox\n',
    '2022-11-25T16:44:33.455Z workers Started run worker instance (delayed) #4\n',
    '2022-11-25T16:44:33.455Z nodeRunner Prepared sandbox [worker #4, session #vx8mm]\n',
    '2022-11-25T16:44:33.455Z workers [worker #4, session #vx8mm] Running tests in sandbox\n',
    '2022-11-25T16:44:33.457Z workers Started run worker instance (delayed) #2\n',
    '2022-11-25T16:44:33.457Z nodeRunner Prepared sandbox [worker #2, session #t7uei]\n',
    '2022-11-25T16:44:33.457Z workers [worker #2, session #t7uei] Running tests in sandbox\n',
    '2022-11-25T16:44:33.464Z workers Started run worker instance (delayed) #6\n',
    '2022-11-25T16:44:33.464Z workers Started run worker instance (delayed) #7\n',
    '2022-11-25T16:44:33.469Z workers Started run worker instance (delayed) #8\n',
    '2022-11-25T16:44:33.469Z workers Started run worker instance (delayed) #10\n',
    '2022-11-25T16:44:33.470Z workers Started run worker instance (delayed) #5\n',
    '2022-11-25T16:44:33.481Z workers Started run worker instance (delayed) #11\n',
    '2022-11-25T16:44:33.487Z workers Started run worker instance (delayed) #9\n',
    '2022-11-25T16:44:33.490Z workers Started run worker instance (delayed) #3\n',
    '2022-11-25T16:44:33.490Z nodeRunner Prepared sandbox [worker #3, session #kb0i0]\n',
    '2022-11-25T16:44:33.490Z workers [worker #3, session #kb0i0] Running tests in sandbox\n',
    '2022-11-25T16:44:33.490Z workers Started run worker instance (delayed) #13\n',
    '2022-11-25T16:44:33.505Z workers Started run worker instance (delayed) #12\n',
    '2022-11-25T16:44:33.887Z workers Scheduling Jest Test Run (t7uei): 2022-11-25T16:44:33.681Z\n',
    '2022-11-25T16:44:33.889Z workers Sandbox (active) [t7uei] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/helpers.spec.js:3\n' +
      "import { expect } from '@jest/globals';\n" +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:44:33.890Z workers Scheduling Jest Test Run (rz5ku): 2022-11-25T16:44:33.682Z\n',
    '2022-11-25T16:44:33.891Z workers Sandbox (active) [rz5ku] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/base.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:44:33.892Z workers [t7uei] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:44:33.893Z workers Jest Test Run Complete (t7uei): 2022-11-25T16:44:33.885Z\n',
    '2022-11-25T16:44:33.893Z workers [rz5ku] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:44:33.894Z workers Jest Test Run Complete (rz5ku): 2022-11-25T16:44:33.889Z\n',
    '2022-11-25T16:44:33.894Z workers [t7uei] Sandbox is responsive, closing it\n',
    '2022-11-25T16:44:33.895Z workers [rz5ku] Sandbox is responsive, closing it\n',
    '2022-11-25T16:44:33.907Z workers Scheduling Jest Test Run (1amb7): 2022-11-25T16:44:33.692Z\n',
    '2022-11-25T16:44:33.909Z workers Sandbox (active) [1amb7] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/database.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:44:33.910Z workers [1amb7] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:44:33.911Z workers Jest Test Run Complete (1amb7): 2022-11-25T16:44:33.906Z\n',
    '2022-11-25T16:44:33.911Z workers [1amb7] Sandbox is responsive, closing it\n',
    '2022-11-25T16:44:33.921Z workers Scheduling Jest Test Run (vx8mm): 2022-11-25T16:44:33.685Z\n',
    '2022-11-25T16:44:33.925Z workers Sandbox (active) [vx8mm] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/simple.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:44:33.928Z workers [vx8mm] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:44:33.929Z workers Jest Test Run Complete (vx8mm): 2022-11-25T16:44:33.920Z\n',
    '2022-11-25T16:44:33.929Z workers [vx8mm] Sandbox is responsive, closing it\n',
    '2022-11-25T16:44:33.936Z workers Scheduling Jest Test Run (kb0i0): 2022-11-25T16:44:33.695Z\n',
    '2022-11-25T16:44:33.938Z workers Sandbox (active) [kb0i0] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/kvp.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:44:33.939Z workers [kb0i0] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:44:33.939Z workers Jest Test Run Complete (kb0i0): 2022-11-25T16:44:33.936Z\n',
    '2022-11-25T16:44:33.940Z workers [kb0i0] Sandbox is responsive, closing it\n',
    '2022-11-25T16:44:33.940Z workers Merging parallel test run results\n',
    '2022-11-25T16:44:33.942Z project Test run finished\n',
    '2022-11-25T16:44:33.942Z project Processed console.log entries\n',
    '2022-11-25T16:44:33.942Z project Processed loading sequences\n',
    '2022-11-25T16:44:33.942Z project Processed executed tests\n',
    '2022-11-25T16:44:33.944Z project Processed code coverage\n',
    '2022-11-25T16:44:33.978Z project Test run result processed and sent to IDE\n',
    '2022-11-25T16:45:07.878Z fs File changed in editor: package.json\n',
    '2022-11-25T16:45:07.879Z extended-core New file or complex file change\n',
    '2022-11-25T16:45:07.886Z project Test run started; run priority: 2\n',
    '2022-11-25T16:45:07.886Z testTask Test files from affected: 0, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2022-11-25T16:45:07.887Z workers Starting test run, priority: 2\n',
    '2022-11-25T16:45:07.887Z workers Distributing tests between 7 workers\n',
    '2022-11-25T16:45:07.887Z workers Running tests in parallel\n',
    '2022-11-25T16:45:07.887Z nodeRunner Starting sandbox [worker #0, session #5w799]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Starting sandbox [worker #1, session #uy0ll]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Starting sandbox [worker #2, session #mku8t]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Starting sandbox [worker #3, session #4fbor]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Starting sandbox [worker #4, session #d1fby]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Preparing sandbox [worker #0, session #5w799]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Preparing sandbox [worker #1, session #uy0ll]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Preparing sandbox [worker #2, session #mku8t]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Preparing sandbox [worker #3, session #4fbor]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Preparing sandbox [worker #4, session #d1fby]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Prepared sandbox [worker #0, session #5w799]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Prepared sandbox [worker #1, session #uy0ll]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Prepared sandbox [worker #2, session #mku8t]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Prepared sandbox [worker #3, session #4fbor]\n',
    '2022-11-25T16:45:07.887Z nodeRunner Prepared sandbox [worker #4, session #d1fby]\n',
    '2022-11-25T16:45:07.887Z workers [worker #0, session #5w799] Running tests in sandbox\n',
    '2022-11-25T16:45:07.888Z workers [worker #1, session #uy0ll] Running tests in sandbox\n',
    '2022-11-25T16:45:07.889Z workers [worker #2, session #mku8t] Running tests in sandbox\n',
    '2022-11-25T16:45:07.889Z workers [worker #3, session #4fbor] Running tests in sandbox\n',
    '2022-11-25T16:45:07.889Z workers [worker #4, session #d1fby] Running tests in sandbox\n',
    '2022-11-25T16:45:08.007Z workers Scheduling Jest Test Run (5w799): 2022-11-25T16:45:07.892Z\n',
    '2022-11-25T16:45:08.010Z workers Scheduling Jest Test Run (d1fby): 2022-11-25T16:45:07.892Z\n',
    '2022-11-25T16:45:08.011Z workers Sandbox (active) [5w799] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/base.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:08.013Z workers Scheduling Jest Test Run (mku8t): 2022-11-25T16:45:07.892Z\n',
    '2022-11-25T16:45:08.014Z workers Sandbox (active) [d1fby] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/simple.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:08.016Z workers Sandbox (active) [mku8t] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/helpers.spec.js:3\n' +
      "import { expect } from '@jest/globals';\n" +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:08.017Z workers [5w799] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:45:08.017Z workers Jest Test Run Complete (5w799): 2022-11-25T16:45:08.006Z\n',
    '2022-11-25T16:45:08.017Z workers [d1fby] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:45:08.018Z workers Jest Test Run Complete (d1fby): 2022-11-25T16:45:08.009Z\n',
    '2022-11-25T16:45:08.018Z workers [mku8t] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:45:08.018Z workers [5w799] Sandbox is responsive, closing it\n',
    '2022-11-25T16:45:08.019Z workers Jest Test Run Complete (mku8t): 2022-11-25T16:45:08.011Z\n',
    '2022-11-25T16:45:08.019Z workers [d1fby] Sandbox is responsive, closing it\n',
    '2022-11-25T16:45:08.020Z workers [mku8t] Sandbox is responsive, closing it\n',
    '2022-11-25T16:45:08.023Z workers Scheduling Jest Test Run (uy0ll): 2022-11-25T16:45:07.892Z\n',
    '2022-11-25T16:45:08.025Z workers Scheduling Jest Test Run (4fbor): 2022-11-25T16:45:07.892Z\n',
    '2022-11-25T16:45:08.025Z workers Sandbox (active) [uy0ll] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/database.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:08.027Z workers Sandbox (active) [4fbor] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/kvp.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:08.028Z workers [uy0ll] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:45:08.029Z workers Jest Test Run Complete (uy0ll): 2022-11-25T16:45:08.023Z\n',
    '2022-11-25T16:45:08.029Z workers [4fbor] Run 0 test(s), skipped 0 test(s)\n',
    '2022-11-25T16:45:08.029Z workers Jest Test Run Complete (4fbor): 2022-11-25T16:45:08.024Z\n',
    '2022-11-25T16:45:08.029Z workers [uy0ll] Sandbox is responsive, closing it\n',
    '2022-11-25T16:45:08.030Z workers [4fbor] Sandbox is responsive, closing it\n',
    '2022-11-25T16:45:08.030Z workers Merging parallel test run results\n',
    '2022-11-25T16:45:08.032Z project Test run finished\n',
    '2022-11-25T16:45:08.032Z project Processed console.log entries\n',
    '2022-11-25T16:45:08.032Z project Processed loading sequences\n',
    '2022-11-25T16:45:08.032Z project Processed executed tests\n',
    '2022-11-25T16:45:08.033Z project Processed code coverage\n',
    '2022-11-25T16:45:08.034Z project Test run result processed and sent to IDE\n',
    '2022-11-25T16:45:11.177Z fs File changed in editor: package.json\n',
    '2022-11-25T16:45:11.186Z project Test run started; run priority: 2\n',
    '2022-11-25T16:45:11.187Z testTask Test files from affected: 0, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2022-11-25T16:45:11.188Z workers Starting test run, priority: 2\n',
    '2022-11-25T16:45:11.188Z workers Distributing tests between 7 workers\n',
    '2022-11-25T16:45:11.188Z workers Running tests in parallel\n',
    '2022-11-25T16:45:11.188Z nodeRunner Starting sandbox [worker #0, session #rml1b]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Starting sandbox [worker #1, session #c9556]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Starting sandbox [worker #2, session #6tmsk]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Starting sandbox [worker #3, session #roe7s]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Starting sandbox [worker #4, session #8a2e9]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Preparing sandbox [worker #0, session #rml1b]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Preparing sandbox [worker #1, session #c9556]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Preparing sandbox [worker #2, session #6tmsk]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Preparing sandbox [worker #3, session #roe7s]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Preparing sandbox [worker #4, session #8a2e9]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Prepared sandbox [worker #0, session #rml1b]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Prepared sandbox [worker #1, session #c9556]\n',
    '2022-11-25T16:45:11.188Z nodeRunner Prepared sandbox [worker #2, session #6tmsk]\n',
    '2022-11-25T16:45:11.189Z nodeRunner Prepared sandbox [worker #3, session #roe7s]\n',
    '2022-11-25T16:45:11.189Z nodeRunner Prepared sandbox [worker #4, session #8a2e9]\n',
    '2022-11-25T16:45:11.189Z workers [worker #0, session #rml1b] Running tests in sandbox\n',
    '2022-11-25T16:45:11.190Z workers [worker #1, session #c9556] Running tests in sandbox\n',
    '2022-11-25T16:45:11.190Z workers [worker #2, session #6tmsk] Running tests in sandbox\n',
    '2022-11-25T16:45:11.190Z workers [worker #3, session #roe7s] Running tests in sandbox\n',
    '2022-11-25T16:45:11.190Z workers [worker #4, session #8a2e9] Running tests in sandbox\n',
    '2022-11-25T16:45:11.301Z workers Scheduling Jest Test Run (rml1b): 2022-11-25T16:45:11.192Z\n',
    '2022-11-25T16:45:11.302Z workers Scheduling Jest Test Run (roe7s): 2022-11-25T16:45:11.192Z\n',
    '2022-11-25T16:45:11.304Z workers Scheduling Jest Test Run (8a2e9): 2022-11-25T16:45:11.192Z\n',
    '2022-11-25T16:45:11.304Z workers Sandbox (active) [roe7s] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/kvp.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:11.306Z workers Sandbox (active) [rml1b] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/base.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:11.308Z workers Scheduling Jest Test Run (6tmsk): 2022-11-25T16:45:11.192Z\n',
    '2022-11-25T16:45:11.309Z workers Sandbox (active) [8a2e9] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/simple.spec.js:3\n' +
      'import {\n' +
      '^^^^^^\n' +
      '\n' +
      'SyntaxError: Cannot use import statement outside a module\n' +
      '    at new Script (node:vm:100:7)\n' +
      '    at Runtime.createScriptFromCode (./node_modules/jest-runtime/build/index.js:1773:14)\n' +
      '    at Runtime._execModule (./node_modules/jest-runtime/build/index.js:1641:25)\n' +
      '    at Runtime._loadModule (./node_modules/jest-runtime/build/index.js:1222:12)\n' +
      '    at Runtime.requireModule (./node_modules/jest-runtime/build/index.js:1046:12)\n' +
      '    at jestAdapter (./node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:89:13)\n' +
      '    at runTestInternal (./node_modules/jest-runner/build/runTest.js:411:16)\n' +
      '    at runTest (./node_modules/jest-runner/build/runTest.js:499:34)\n' +
      '    at TestRunner.runTests (./node_modules/jest-runner/build/index.js:145:12)\n' +
      '    at TestScheduler.scheduleTests (./node_modules/@jest/core/build/TestScheduler.js:317:13)\n',
    '2022-11-25T16:45:11.310Z workers Scheduling Jest Test Run (c9556): 2022-11-25T16:45:11.192Z\n',
    '2022-11-25T16:45:11.311Z workers Sandbox (active) [6tmsk] error: Jest encountered an unexpected token\n' +
      '\n' +
      'Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.\n' +
      '\n' +
      'Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.\n' +
      '\n' +
      'By default "node_modules" folder is ignored by transformers.\n' +
      '\n' +
      "Here's what you can do:\n" +
      ' • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.\n' +
      ' • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript\n' +
      ' • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.\n' +
      ' • If you need a custom transformation specify a "transform" option in your config.\n' +
      ' • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.\n' +
      '\n' +
      "You'll find more details and examples of these config options in the docs:\n" +
      'https://jestjs.io/docs/configuration\n' +
      'For information about custom transformations, see:\n' +
      'https://jestjs.io/docs/code-transformation\n' +
      '\n' +
      'Details:\n' +
      '\n' +
      './tests/helpers.spec.js:3\n' +
      "import { expect } from '@jest/globals';\n" +
      '^^^^^^\n' +
      '\n' 
  ]
}
deni5n commented 1 year ago

jest works fine

ArtemGovorov commented 1 year ago

jest works fine

Do you run Jest with --experimental-vm-modules flag? If so, you need to add the config setting for Wallaby too.

deni5n commented 1 year ago

I did this, but these tests run in an infinite loop. with jest everything works fine:

Test Suites: 5 passed, 5 total
Tests:       147 passed, 147 total
Snapshots:   0 total
Time:        1.531 s, estimated 2 s

What can be wrong?

console Wallaby

​​[Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute.​​
​​[Error] The last recorded console.log: (node:22243) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time​​
​​[Error] (Use `node --trace-warnings ...` to show where the warning was created)​​

when added

‍​[Info]​ Started Wallaby.js Core v1.0.1346
​[Info]​ console.error: (node:27293) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
​[Info]​     at emitExperimentalWarning (node:internal/util:224:11)
​[Info]​     at new Module (node:internal/vm/module:81:5)
​[Info]​     at new SourceTextModule (node:internal/vm/module:297:5)
​[Info]​     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
​[Info]​     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
​[Info]​     at Module._compile (node:internal/modules/cjs/loader:1105:14)
​[Info]​     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
​[Info]​     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
​[Info]​     at Module.load (node:internal/modules/cjs/loader:981:32)
​[Info]​     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
​[Info]​     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
​[Info]​     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
​[Info]​     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
​[Info]​     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
​[Info]​     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
​[Info]​ console.error: (node:27287) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
​[Info]​     at emitExperimentalWarning (node:internal/util:224:11)
​[Info]​     at new Module (node:internal/vm/module:81:5)
​[Info]​     at new SourceTextModule (node:internal/vm/module:297:5)
​[Info]​     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
​[Info]​     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
​[Info]​     at Module._compile (node:internal/modules/cjs/loader:1105:14)
​[Info]​     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
​[Info]​     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
​[Info]​     at Module.load (node:internal/modules/cjs/loader:981:32)
​[Info]​     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
​[Info]​     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
​[Info]​     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
​[Info]​     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
​[Info]​     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
​[Info]​     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
​[Info]​ console.error: (node:27306) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
​[Info]​     at emitExperimentalWarning (node:internal/util:224:11)
​[Info]​     at new Module (node:internal/vm/module:81:5)
​[Info]​     at new SourceTextModule (node:internal/vm/module:297:5)
​[Info]​     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
​[Info]​     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
​[Info]​     at Module._compile (node:internal/modules/cjs/loader:1105:14)
​[Info]​     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
​[Info]​     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
​[Info]​     at Module.load (node:internal/modules/cjs/loader:981:32)
​[Info]​     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
​[Info]​     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
​[Info]​     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
​[Info]​     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
​[Info]​     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
​[Info]​     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
​[Info]​ console.error: (node:27300) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
​[Info]​     at emitExperimentalWarning (node:internal/util:224:11)
​[Info]​     at new Module (node:internal/vm/module:81:5)
​[Info]​     at new SourceTextModule (node:internal/vm/module:297:5)
​[Info]​     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
​[Info]​     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
​[Info]​     at Module._compile (node:internal/modules/cjs/loader:1105:14)
​[Info]​     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
​[Info]​     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
​[Info]​     at Module.load (node:internal/modules/cjs/loader:981:32)
​[Info]​     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
​[Info]​     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
​[Info]​     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
​[Info]​     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
​[Info]​     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
​[Info]​     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
​[Info]​ console.error: (node:27294) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
​[Info]​     at emitExperimentalWarning (node:internal/util:224:11)
​[Info]​     at new Module (node:internal/vm/module:81:5)
​[Info]​     at new SourceTextModule (node:internal/vm/module:297:5)
​[Info]​     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7
​[Info]​     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)
​[Info]​     at Module._compile (node:internal/modules/cjs/loader:1105:14)
​[Info]​     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)
​[Info]​     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
​[Info]​     at Module.load (node:internal/modules/cjs/loader:981:32)
​[Info]​     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
​[Info]​     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)
​[Info]​     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677
​[Info]​     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)
​[Info]​     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)
​[Info]​     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)
​[Info]​ console.log: Jest: PASS tests/helpers.spec.js
​[Info]​ console.log: Jest: PASS tests/kvp.spec.js
​[Info]​ Execution progress: 50 tests
​[Info]​ console.log: Jest: PASS tests/simple.spec.js
​[Info]​ Execution progress: 100 tests
​[Info]​ console.log: Jest: PASS tests/base.spec.js
​​[Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute.​​
​​[Error] The last recorded console.log: (node:27293) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time​​
​​[Error]     at emitExperimentalWarning (node:internal/util:224:11)​​
​​[Error]     at new Module (node:internal/vm/module:81:5)​​
​​[Error]     at new SourceTextModule (node:internal/vm/module:297:5)​​
​​[Error]     at /home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:284:7​​
​​[Error]     at Object.<anonymous> (/home/deni5n/project/frunze62Bot/app/node_modules/jest-runtime/build/index.js:289:5)​​
​​[Error]     at Module._compile (node:internal/modules/cjs/loader:1105:14)​​
​​[Error]     at Module._0x346954.<computed> [as _compile] (eval at <anonymous> (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/node_modules/q/q.js:2075:6), <anonymous>:1:1118371)​​
​​[Error]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)​​
​​[Error]     at Module.load (node:internal/modules/cjs/loader:981:32)​​
​​[Error]     at Function.Module._load (node:internal/modules/cjs/loader:822:12)​​
​​[Error]     at Object.tryRequireModuleWithPathFrom (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/server.js:31:16423)​​
​​[Error]     at /home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:19677​​
​​[Error]     at r (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:1390)​​
​​[Error]     at Object.next (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:685)​​
​​[Error]     at o (/home/deni5n/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.348/wallabyf89dda/runners/node/jest@24.8.0/initializer.js:14:434)​​
deni5n commented 1 year ago

my package.json contains

{
...
"wallaby": {
    "env": {
      "params": {
        "runner": "--experimental-vm-modules --trace-warnings"
      }
    }
  }
}
ArtemGovorov commented 1 year ago
smcenlly commented 1 year ago

Closing this issue as we haven't heard back.