Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arr.flat([depth]).flat is not a function or other #2228

Closed
bad4iz opened this issue Oct 2, 2019 · 7 comments
Closed

arr.flat([depth]).flat is not a function or other #2228

bad4iz opened this issue Oct 2, 2019 · 7 comments

Comments

@bad4iz
Copy link

bad4iz commented Oct 2, 2019

[2,[2]].flat()
// or flatMap

TypeError: [2,[2]].flat is not a function

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat

@smcenlly
Copy link
Member

smcenlly commented Oct 2, 2019

The most likely cause of this error is that the runtime that you're using does not support flat or flatMap. If you're using node as env.type, please make sure that you are using a version of node that has the function (see compatibility here).

If your env.type is browser, could you please updating to use chrome? The latest version of chrome supports flat and flatMap.

If you're still experiencing the problem, please provide us with your Wallaby.js configuration file and details of your node and browser versions.

@bad4iz
Copy link
Author

bad4iz commented Oct 3, 2019

module.exports = function(wallaby) {
  // Babel, jest-cli and some other modules may be located under
  // react-scripts/node_modules, so need to let node.js know about it
  const path = require('path');
  process.env.NODE_PATH +=
    path.delimiter +
    path.join(__dirname, 'node_modules') +
    path.delimiter +
    path.join(wallaby.projectCacheDir, 'src');

  require('module')
    .Module
    ._initPaths();

  return {
    name: 'VETAIS',

    files: [
      './jest.config.js',
      './setupTests.js',
      'src/**/*.+(js|jsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)',
      '!src/**/*.test.js?(x)',
      '!src/**/*.spec.js?(x)',
    ],

    tests: [
      'src/**/*.test.js?(x)',
      'src/**/*.spec.js?(x)',
    ],

    env: {
      type: 'node',
      runner: 'node',
    },

    compilers: {
      '**/*.js?(x)': wallaby.compilers.babel({
        presets: ['@babel/preset-env', '@babel/preset-react'],
        plugins: [
          '@babel/plugin-proposal-object-rest-spread',
          '@babel/plugin-proposal-class-properties',
          '@babel/plugin-syntax-dynamic-import',
        ],
      }),
    },

    setup: wallaby => {
      var jestConfig = require('./jest.config');
      /* for example:
       * jestConfig.globals = { "__DEV__": true }; */
      wallaby.testFramework.configure(jestConfig);
    },
    lowCoverageThreshold: 70,
    testFramework: 'jest',
  };
};

@ArtemGovorov
Copy link
Member

Try this change:

    ...
    env: {
      type: 'node',
-     runner: 'node',
    },

If it doesn't help, please provide Wallaby Diagnostics Report. To share the report:

  • start Wallaby in your project;
  • wait until it reports some results (finishes running tests);
  • run Copy Diagnostics Report command:
    • in VS Code, Atom, or Sublime editor execute Wallaby Copy Diagnostics Report command;
    • in JetBrains IDEs or VS use Wallaby Help | Wallaby.js | Copy Diagnostics Report menu item;
  • paste generated report from your clipboard below (feel free to review and edit the report if required).

@bad4iz
Copy link
Author

bad4iz commented Oct 3, 2019

{ editorVersion: 'PhpStorm 2019.2.3',
  pluginVersion: '1.0.143',
  editorType: 'IntelliJ',
  osVersion: 'win32 10.0.18990',
  nodeVersion: 'v10.15.3',
  coreVersion: '1.0.760',
  config:
   { name: 'VETAIS',
     files:
      [ { pattern: 'jest.config.js', ignore: false, trigger: true, load: true, instrument: true, order: 1 },
        { pattern: 'setupTests.js', ignore: false, trigger: true, load: true, instrument: true, order: 2 },
        { pattern: 'src/**/*.+(js|jsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', ignore: false, trigger: true, load: true, instrument: true, order: 3 },
        { pattern: 'src/**/*.test.js?(x)', ignore: true, trigger: true, load: true, instrument: true },
        { pattern: 'src/**/*.spec.js?(x)', ignore: true, trigger: true, load: true, instrument: true },
        { pattern: 'src/**/*.test.js?(x).snap', ignore: false, instrument: false, trigger: true, load: true, order: 4 },
        { pattern: 'src/**/*.spec.js?(x).snap', ignore: false, instrument: false, trigger: true, load: true, order: 5 },
        { pattern: 'package.json', ignore: false, instrument: false, trigger: true, load: true, order: 6 } ],
     tests:
      [ { pattern: 'src/**/*.test.js?(x)', ignore: false, trigger: true, load: true, test: true, order: 7 }, { pattern: 'src/**/*.spec.js?(x)', ignore: false, trigger: true, load: true, test: true, order: 8 } ],
     env: { type: 'node', params: {}, runner: 'C:\\Program Files\\nodejs\\node.exe', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
     compilers: { '**/*.js?(x)': [Function], '**/*.?(lit)coffee?(.md)': [Function] },
     lowCoverageThreshold: 70,
     testFramework: { version: '[email protected]', configurator: '[email protected]', reporter: '[email protected]', starter: '[email protected]' },
     diagnostics: {},
     filesWithNoCoverageCalculated: [],
     runAllTestsInAffectedTestFile: false,
     preprocessors: { 'package.json': [Function] },
     maxConsoleMessagesPerTest: 100,
     autoConsoleLog: true,
     delays: { run: 0, edit: 100, update: 0 },
     workers: { initial: 0, regular: 0, recycle: false },
     teardown: undefined,
     hints:
      { ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore/',
        ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
        commentAutoLog: '?',
        testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' } },
     automaticTestFileSelection: true,
     runSelectedTestsOnly: false,
     extensions: {},
     reportUnhandledPromises: true,
     slowTestThreshold: 75,
     loose: true,
     configCode:
      'module.exports = function(wallaby) {\n  // Babel, jest-cli and some other modules may be located under\n  // react-scripts/node_modules, so need to let node.js know about it\n  const path = require(\'path\');\n  process.env.NODE_PATH +=\n    path.delimiter +\n    path.join(__dirname, \'node_modules\') +\n    path.delimiter +\n    path.join(wallaby.projectCacheDir, \'src\');\n\n  require(\'module\').Module._initPaths();\n\n  return {\n    name: \'VETAIS\',\n\n    files: [\n      \'./jest.config.js\',\n      \'./setupTests.js\',\n      \'src/**/*.+(js|jsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)\',\n      \'!src/**/*.test.js?(x)\',\n      \'!src/**/*.spec.js?(x)\',\n    ],\n\n    tests: [\'src/**/*.test.js?(x)\', \'src/**/*.spec.js?(x)\'],\n\n    env: {\n      type: \'node\',\n    },\n\n    compilers: {\n      \'**/*.js?(x)\': wallaby.compilers.babel({\n        presets: [\'@babel/preset-env\', \'@babel/preset-react\'],\n        plugins: [\n          \'@babel/plugin-proposal-object-rest-spread\',\n          \'@babel/plugin-proposal-class-properties\',\n          \'@babel/plugin-syntax-dynamic-import\',\n        ],\n      }),\n    },\n\n    setup: wallaby => {\n      var jestConfig = require(\'./jest.config\');\n      /* for example:\n       * jestConfig.globals = { "__DEV__": true }; */\n      wallaby.testFramework.configure(jestConfig);\n    },\n    lowCoverageThreshold: 70,\n    testFramework: \'jest\',\n  };\n};\n' },
  packageJSON:
   { dependencies:
      { '2gis-maps': '^3.5.0',
        '@babel/runtime': '^7.5.5',
        'animation-frame': '^0.3.0',
        axios: '^0.18.0',
        'babel-polyfill': '^6.23.0',
        classnames: '^2.2.6',
        cnbuilder: '^1.1.7',
        compression: '^1.6.2',
        controls: '^0.7.5',
        'core-js': '^3.2.1',
        downshift: '^3.2.12',
        express: '^4.14.0',
        'final-form': '^4.18.5',
        'final-form-arrays': '^3.0.1',
        flat: '^4.0.0',
        'google-map-react': '^0.25.0',
        immutable: '^3.8.1',
        localforage: '^1.5.2',
        lodash: '^4.17.15',
        'object-assign': '^4.1.1',
        promise: '^8.0.1',
        'prop-types': '^15.6.1',
        react: '^16.9.0',
        'react-day-picker': '^7.1.9',
        'react-dom': '^16.9.0',
        'react-final-form': '^6.3.0',
        'react-final-form-arrays': '^3.1.1',
        'react-helmet': '^5.2.0',
        'react-input-mask': '^1.2.2',
        'react-redux': '^7.1.1',
        'react-render-html': '^0.6.0',
        'react-router': '^3.0.0',
        'react-router-dom': '^5.0.1',
        'redbox-react': '^1.6.0',
        redux: '^4.0.4',
        'redux-thunk': '^2.2.0',
        'regenerator-runtime': '^0.13.3',
        reselect: '^4.0.0',
        'resize-observer-polyfill': '^1.5.1' },
     devDependencies:
      { '@babel/core': '^7.5.5',
        '@babel/plugin-proposal-class-properties': '^7.5.5',
        '@babel/plugin-proposal-object-rest-spread': '^7.5.5',
        '@babel/plugin-syntax-dynamic-import': '^7.2.0',
        '@babel/plugin-transform-runtime': '^7.5.5',
        '@babel/preset-env': '^7.5.5',
        '@babel/preset-react': '^7.0.0',
        '@storybook/addon-actions': '^5.1.11',
        '@storybook/addon-links': '^5.1.11',
        '@storybook/addons': '^5.1.11',
        '@storybook/react': '^5.1.11',
        'axios-mock-adapter': '^1.17.0',
        'babel-eslint': '^7.2.3',
        'babel-jest': '^24.8.0',
        'babel-loader': '^8.0.6',
        chalk: '^1.1.3',
        codecov: '^2.2.0',
        'connect-history-api-fallback': '^1.3.0',
        'cross-env': '^5.0.0',
        'css-loader': '^0.28.1',
        'dirty-chai': '^1.2.2',
        enzyme: '^3.10.0',
        'enzyme-adapter-react-16': '^1.14.0',
        'enzyme-to-json': '^3.3.5',
        eslint: '^6.3.0',
        'eslint-config-airbnb': '^18.0.1',
        'eslint-config-prettier': '^6.2.0',
        'eslint-plugin-babel': '^4.1.1',
        'eslint-plugin-import': '^2.18.2',
        'eslint-plugin-jest': '^22.17.0',
        'eslint-plugin-jsx-a11y': '^6.2.3',
        'eslint-plugin-node': '^4.2.2',
        'eslint-plugin-promise': '^3.5.0',
        'eslint-plugin-react': '^7.14.3',
        'eslint-plugin-react-hooks': '^2.0.1',
        'extract-text-webpack-plugin': '^2.1.0',
        figures: '^2.0.0',
        'file-loader': '^0.11.1',
        'fs-extra': '^3.0.1',
        'html-webpack-plugin': '^2.24.1',
        'identity-obj-proxy': '^3.0.0',
        jest: '^24.8.0',
        'node-sass': '^4.5.3',
        'phantomjs-prebuilt': '^2.1.14',
        prettier: '^1.18.2',
        'react-addons-test-utils': '^15.5.1',
        'react-test-renderer': '^16.3.2',
        'redux-logger': '^3.0.6',
        'redux-mock-store': '^1.5.3',
        rimraf: '^2.6.1',
        'sass-loader': '^6.0.5',
        sinon: '^2.2.0',
        'sinon-chai': '^2.10.0',
        'style-loader': '^0.17.0',
        stylus: '^0.54.5',
        'stylus-loader': '^3.0.1',
        'url-loader': '^0.5.8',
        webpack: '^2.5.1',
        'webpack-dev-middleware': '^1.8.4',
        'webpack-hot-middleware': '^2.13.2',
        yargs: '^8.0.1' } },
  fs: { numberOfFiles: 1787 },
  debug:
   [ '2019-10-03T05:52:12.286Z project Wallaby Node version: v10.15.3\n',
     '2019-10-03T05:52:12.286Z project Wallaby config: C:\\Users\\User\\www\\main\\wallaby.js\n',
     '2019-10-03T05:52:15.472Z project File cache: C:\\Users\\User\\.PhpStorm2019.2\\system\\wallaby\\projects\\d3f179eddea58e3e\n',
     '2019-10-03T05:52:15.528Z uiService Listening port 51235\n',
     '2019-10-03T05:52:15.710Z workers Parallelism for initial run: 6, for regular run: 3\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #0\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #1\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #2\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #3\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #4\n',
     '2019-10-03T05:52:15.710Z workers Starting run worker instance #5\n',
     '2019-10-03T05:52:15.780Z workers Web server is listening at 62916\n',
     '2019-10-03T05:52:16.192Z project File cache requires some updates, waiting required files from IDE\n',
     '2019-10-03T05:52:16.771Z workers Started run worker instance (delayed) #4\n',
     '2019-10-03T05:52:16.772Z workers Started run worker instance (delayed) #2\n',
     '2019-10-03T05:52:16.773Z workers Started run worker instance (delayed) #3\n',
     '2019-10-03T05:52:16.780Z workers Started run worker instance (delayed) #5\n',
     '2019-10-03T05:52:16.789Z workers Started run worker instance (delayed) #0\n',
     '2019-10-03T05:52:16.810Z workers Started run worker instance (delayed) #1\n',
     '2019-10-03T05:52:18.027Z project Stopping process pool\n',
     '2019-10-03T05:52:18.030Z project Running postprocessor\n',
     '2019-10-03T05:52:18.084Z postprocessor New TypeScript language service is required\n',
     '2019-10-03T05:52:18.096Z postprocessor TypeScript postprocessor will be removed because in 1787 project files none were found by patterns: **/*.ts?(x)\n',
     '2019-10-03T05:52:18.096Z project Postprocessor execution finished\n',
     '2019-10-03T05:52:18.096Z project Postprocessor is removed as requested by itself\n',
     '2019-10-03T05:52:18.096Z project Test run started; run priority: 3\n',
     '2019-10-03T05:52:18.096Z project Running all tests\n',
     '2019-10-03T05:52:18.110Z workers Starting test run, priority: 3\n',
     '2019-10-03T05:52:18.110Z workers Distributing tests between 6 workers\n',
     '2019-10-03T05:52:18.111Z workers Running tests in parallel\n',
     '2019-10-03T05:52:18.111Z nodeRunner Starting sandbox [worker #0, session #273ag]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Starting sandbox [worker #1, session #clo2p]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Starting sandbox [worker #2, session #q0q5j]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Starting sandbox [worker #3, session #b97sq]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Starting sandbox [worker #4, session #8svm4]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Starting sandbox [worker #5, session #hkucc]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #0, session #273ag]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #1, session #clo2p]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #2, session #q0q5j]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #3, session #b97sq]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #4, session #8svm4]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Preparing sandbox [worker #5, session #hkucc]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #0, session #273ag]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #1, session #clo2p]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #2, session #q0q5j]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #3, session #b97sq]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #4, session #8svm4]\n',
     '2019-10-03T05:52:18.112Z nodeRunner Prepared sandbox [worker #5, session #hkucc]\n',
     '2019-10-03T05:52:18.112Z workers [worker #0, session #273ag] Running tests in sandbox\n',
     '2019-10-03T05:52:18.114Z workers [worker #1, session #clo2p] Running tests in sandbox\n',
     '2019-10-03T05:52:18.115Z workers [worker #2, session #q0q5j] Running tests in sandbox\n',
     '2019-10-03T05:52:18.116Z workers [worker #3, session #b97sq] Running tests in sandbox\n',
     '2019-10-03T05:52:18.117Z workers [worker #4, session #8svm4] Running tests in sandbox\n',
     '2019-10-03T05:52:18.117Z workers [worker #5, session #hkucc] Running tests in sandbox\n',
     '2019-10-03T05:52:28.584Z workers [273ag] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:29.068Z workers [clo2p] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:29.578Z workers [clo2p] Test executed: проверяем что все AccordionItem\n',
     '2019-10-03T05:52:29.593Z workers [clo2p] Test executed: проверяем текст\n',
     '2019-10-03T05:52:29.594Z workers [clo2p] Test executed: проверяем количество итемов\n',
     '2019-10-03T05:52:29.612Z workers [clo2p] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:29.615Z workers [clo2p] Test executed: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:29.625Z workers [clo2p] Test executed: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:29.629Z workers [clo2p] Test executed: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:29.630Z workers [clo2p] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:29.631Z workers [clo2p] Test executed: +++ reducer --- edit\n',
     '2019-10-03T05:52:29.633Z workers [clo2p] Test executed: +++ reducer --- add\n',
     '2019-10-03T05:52:29.635Z workers [clo2p] Test executed: +++ reducer --- create\n',
     '2019-10-03T05:52:29.636Z workers [clo2p] Test executed: +++ reducer --- remove\n',
     '2019-10-03T05:52:29.637Z workers [clo2p] Test executed: +++ reducer --- НЕ СУЩЕСТВУЮЩИЙ\n',
     '2019-10-03T05:52:29.640Z workers [clo2p] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:29.642Z workers [clo2p] Test executed: []\n',
     '2019-10-03T05:52:29.643Z workers [clo2p] Test executed: defalut\n',
     '2019-10-03T05:52:29.644Z workers [clo2p] Test executed: sort order\n',
     '2019-10-03T05:52:29.644Z workers [clo2p] Test executed: sort order two same\n',
     '2019-10-03T05:52:30.422Z workers [8svm4] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:30.813Z workers [hkucc] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:30.947Z workers [273ag] Test executed: adds 1 + 2 to equal 3\n',
     '2019-10-03T05:52:30.952Z workers [273ag] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:30.964Z workers [273ag] Test executed: +++ actionCreator передаем id\n',
     '2019-10-03T05:52:30.967Z workers [273ag] Test executed: +++ actionCreator c fetch\n',
     '2019-10-03T05:52:30.969Z workers [273ag] Test executed: +++ actionCreator без fetch\n',
     '2019-10-03T05:52:30.970Z workers [273ag] Test executed: +++ actionCreator\n',
     '2019-10-03T05:52:30.977Z workers [273ag] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:30.995Z workers [q0q5j] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.012Z workers [273ag] Test executed: +++ actionCreator  --- edit\n',
     '2019-10-03T05:52:31.016Z workers [273ag] Test executed: +++ actionCreator  --- add\n',
     '2019-10-03T05:52:31.027Z workers [273ag] Test executed: +++ actionCreator create --- create\n',
     '2019-10-03T05:52:31.030Z workers [273ag] Test executed: +++ actionCreator --- remove\n',
     '2019-10-03T05:52:31.034Z workers [273ag] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.037Z workers [273ag] Test executed: >>> action CALCULATE_DOSAGE\n',
     '2019-10-03T05:52:31.045Z workers [273ag] Test executed: <<< reducer CALCULATE_DOSAGE\n',
     '2019-10-03T05:52:31.053Z workers [273ag] Test executed: <<< КОТОРЫЙ НЕ СУЩЕСТВУЕТ\n',
     '2019-10-03T05:52:31.086Z workers [8svm4] Test executed: проверяем дату на два дня старее\n',
     '2019-10-03T05:52:31.101Z workers [8svm4] Test executed: проверяем дату на день старее\n',
     '2019-10-03T05:52:31.112Z workers [8svm4] Test executed: проверяем дату c текущим моментом\n',
     '2019-10-03T05:52:31.130Z workers [8svm4] Test executed: проверяем дату c будущей датой на день +\n',
     '2019-10-03T05:52:31.132Z workers [8svm4] Test executed: проверяем дату c будущей датой на два дня +\n',
     '2019-10-03T05:52:31.134Z workers [8svm4] Test executed: проверяем дату c прошлым годом прошлым месяцем и датой на два дня +\n',
     '2019-10-03T05:52:31.154Z workers [8svm4] Test executed: проверяем дату c прошлым годом прошлым месяцем \n',
     '2019-10-03T05:52:31.173Z workers [8svm4] Test executed: проверяем дату c будущим годом и прошлым месяцем и пролой датой \n',
     '2019-10-03T05:52:31.178Z workers [8svm4] Test executed: проверяем дату c будущем месяцем \n',
     '2019-10-03T05:52:31.183Z workers [8svm4] Test executed: проверяем дату c будущем месяцем и прошлой датой\n',
     '2019-10-03T05:52:31.187Z workers [8svm4] Test executed: проверяем дату c прошлым месяцем \n',
     '2019-10-03T05:52:31.196Z workers [8svm4] Test executed: проверяем дату c прошлым месяцем и следующей датой\n',
     '2019-10-03T05:52:31.203Z workers [8svm4] Test executed: \n',
     '2019-10-03T05:52:31.208Z workers [8svm4] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.210Z workers [8svm4] Test executed: +++ actionCreator get\n',
     '2019-10-03T05:52:31.212Z workers [8svm4] Test executed: <<< reducer  GET_V2_ANIMALS_SERVICES_LIST_SUCCESS\n',
     '2019-10-03T05:52:31.220Z workers [8svm4] Test executed: <<< reducer прередаем несуществующий акшин \n',
     '2019-10-03T05:52:31.230Z workers [8svm4] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.232Z workers [8svm4] Test executed: создаем акшин\n',
     '2019-10-03T05:52:31.265Z workers [8svm4] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.301Z workers [8svm4] Test executed: []\n',
     '2019-10-03T05:52:31.318Z workers [8svm4] Test executed: splitFields\n',
     '2019-10-03T05:52:31.618Z workers [q0q5j] Test executed: проверяем что класс открытия не активный\n',
     '2019-10-03T05:52:31.619Z workers [q0q5j] Test executed: проверяем что класс открытия активный после клика на титле\n',
     '2019-10-03T05:52:31.649Z workers [q0q5j] Test executed: титле\n',
     '2019-10-03T05:52:31.650Z workers [q0q5j] Test executed: body\n',
     '2019-10-03T05:52:31.654Z workers [q0q5j] Test executed: icon\n',
     '2019-10-03T05:52:31.659Z workers [q0q5j] Test executed: закрыто\n',
     '2019-10-03T05:52:31.664Z workers [q0q5j] Test executed: открыто\n',
     '2019-10-03T05:52:31.668Z workers [q0q5j] Test executed: header\n',
     '2019-10-03T05:52:31.675Z workers [q0q5j] Test executed: body\n',
     '2019-10-03T05:52:31.677Z workers [q0q5j] Test executed: icon\n',
     '2019-10-03T05:52:31.695Z workers [q0q5j] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.696Z workers [q0q5j] Test executed: проверка если нет данных\n',
     '2019-10-03T05:52:31.696Z workers [q0q5j] Test executed: Дозы препарата передача доз в таблицу\n',
     '2019-10-03T05:52:31.700Z workers [q0q5j] Test executed: клик на ссылку\n',
     '2019-10-03T05:52:31.705Z workers [q0q5j] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.711Z workers [q0q5j] Test executed: +++ actionCreator create\n',
     '2019-10-03T05:52:31.714Z workers [q0q5j] Test executed: <<< reducer  CREATE_DOSAGE_SUCCESS\n',
     '2019-10-03T05:52:31.719Z workers [q0q5j] Test executed: +++ actionCreator create\n',
     '2019-10-03T05:52:31.729Z workers [q0q5j] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.731Z workers [q0q5j] Test executed: PrintButton class\n',
     '2019-10-03T05:52:31.733Z workers [q0q5j] Test executed: PrintButton click \n',
     '2019-10-03T05:52:31.879Z workers [b97sq] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:31.995Z workers [b97sq] Test executed: 2019-12-05\n',
     '2019-10-03T05:52:32.002Z workers [b97sq] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.006Z workers [b97sq] Test executed: +++ actionCreator getList\n',
     '2019-10-03T05:52:32.011Z workers [b97sq] Test executed: <<< reducer GET_LIST_DOSAGES_SUCCESS\n',
     '2019-10-03T05:52:32.013Z workers [b97sq] Test executed: <<< записываем в стору id препарата\n',
     '2019-10-03T05:52:32.025Z workers [b97sq] Test executed: <<< КОТОРЫЙ НЕ СУЩЕСТВУЕТ\n',
     '2019-10-03T05:52:32.030Z workers [b97sq] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.034Z workers [b97sq] Test executed: >>> ACTION printPetPassport\n',
     '2019-10-03T05:52:32.034Z workers [b97sq] Test executed: <<< REDUCER printPetPassport\n',
     '2019-10-03T05:52:32.034Z workers [b97sq] Test executed: <<< КОТОРЫЙ НЕ СУЩЕСТВУЕТ\n',
     '2019-10-03T05:52:32.039Z workers [b97sq] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.050Z workers [b97sq] Test executed: btn label\n',
     '2019-10-03T05:52:32.053Z workers [b97sq] Test executed: btn hidden\n',
     '2019-10-03T05:52:32.053Z workers [b97sq] Test executed: btn onClick\n',
     '2019-10-03T05:52:32.055Z workers [b97sq] Test executed: btn disable\n',
     '2019-10-03T05:52:32.056Z workers [b97sq] Test executed: btn class mods\n',
     '2019-10-03T05:52:32.155Z workers [hkucc] Test executed: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:32.160Z workers [hkucc] Test executed: должен вернуть исходное состояние\n',
     '2019-10-03T05:52:32.163Z workers [hkucc] Test executed: инициализируем нового владельца\n',
     '2019-10-03T05:52:32.164Z workers [hkucc] Test executed: изменяем владельца при этом должно все сброситься но не mosruServices\n',
     '2019-10-03T05:52:32.166Z workers [hkucc] Test executed: выбираем того же владельца при этом должно все остаться\n',
     '2019-10-03T05:52:32.167Z workers [hkucc] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.173Z workers [hkucc] Test executed: проверяем заголовок\n',
     '2019-10-03T05:52:32.179Z workers [hkucc] Test executed: проверяем descr\n',
     '2019-10-03T05:52:32.184Z workers [hkucc] Test executed: проверяем заголовок\n',
     '2019-10-03T05:52:32.195Z workers [hkucc] Test executed: проверяем descr\n',
     '2019-10-03T05:52:32.197Z workers [hkucc] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.199Z workers [hkucc] Test executed: +++ actionCreator edit\n',
     '2019-10-03T05:52:32.201Z workers [hkucc] Test executed: +++ actionCreator add\n',
     '2019-10-03T05:52:32.201Z workers [hkucc] Test executed: +++ actionCreator create\n',
     '2019-10-03T05:52:32.202Z workers [hkucc] Test executed: +++ actionCreator remove\n',
     '2019-10-03T05:52:32.205Z workers [hkucc] Loaded unknown number of test(s)\n',
     '2019-10-03T05:52:32.207Z workers [hkucc] Test executed: simple Page\n',
     '2019-10-03T05:52:32.212Z workers [hkucc] Test executed: tabs\n',
     '2019-10-03T05:52:32.214Z workers [hkucc] Test executed: title\n',
     '2019-10-03T05:52:32.216Z workers [hkucc] Test executed: toolbar\n',
     '2019-10-03T05:52:32.216Z workers [hkucc] Test executed: print btn\n',
     '2019-10-03T05:52:33.423Z workers [clo2p] Run 15 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.426Z workers [clo2p] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.638Z workers [273ag] Run 12 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.641Z workers [273ag] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.652Z workers [8svm4] Run 19 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.653Z workers [8svm4] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.744Z workers [q0q5j] Run 18 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.745Z workers [q0q5j] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.913Z workers [b97sq] Run 13 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.915Z workers [b97sq] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.931Z workers [hkucc] Run 18 test(s), skipped 0 test(s)\n',
     '2019-10-03T05:52:33.933Z workers [hkucc] Sandbox is responsive, closing it\n',
     '2019-10-03T05:52:33.933Z workers Merging parallel test run results\n',
     '2019-10-03T05:52:34.014Z project Test run finished\n',
     '2019-10-03T05:52:34.015Z project Processed console.log entries\n',
     '2019-10-03T05:52:34.016Z project Processed loading sequences\n',
     '2019-10-03T05:52:34.017Z project Test name duplicate: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:34.017Z project Test name duplicate: +++ actionCreator передаем type\n',
     '2019-10-03T05:52:34.019Z project Processed executed tests\n',
     '2019-10-03T05:52:34.155Z project Processed code coverage\n',
     '2019-10-03T05:52:34.526Z project Test run result processed and sent to IDE\n' ] }

@bad4iz
Copy link
Author

bad4iz commented Oct 3, 2019

image

@ArtemGovorov
Copy link
Member

Looks like by default your system is using nodeVersion: 'v10.15.3', and it doesn't support Array.flat method. You need to install newer node.js version that supports Array.flat and then it should work for you. If you already have the newer version installed, you may specify the version in your PhpStorm Wallaby Run Configuration Node field.

Screen Shot 2019-10-03 at 4 01 03 pm

@bad4iz
Copy link
Author

bad4iz commented Oct 3, 2019

thanks a lot, everything works .. updated the node at 12.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants