wallabyjs / public

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

How include c++ addons in wallaby testing. Jest do not have issues with them #2671

Closed olegdovger closed 3 years ago

olegdovger commented 3 years ago

Issue description or question

My nodejs app uses c++ addon (https://nodejs.org/api/addons.html)

I use jest to run my tests.

How can I run jest tests using wallaby?

All tests passed without wallabyjs, but not with it.

Wallaby diagnostics report

{
  editorVersion: 'WebStorm 2020.2.4',
  pluginVersion: '1.0.213',
  editorType: 'IntelliJ',
  osVersion: 'win32 10.0.17134',
  nodeVersion: 'v13.0.1',
  coreVersion: '1.0.1051',
  checksum: 'OWM5YWVjMDdkNGRlZTAwZTM5MjZiMzVmMTY0NjljZmIsMTYzNTU1MjAwMDAwMCww',
  config: {
    files: [
      { pattern: '**/node_modules/**/*.json', ignore: true, trigger: true, load: true, instrument: true },
      { pattern: '**/node_modules/**/*.js', ignore: true, trigger: true, load: true, instrument: true },
      { pattern: '**/*.test.js', ignore: true, trigger: true, load: true, instrument: true },
      { pattern: '**/coverage/**/*.js', ignore: true, trigger: true, load: true, instrument: true },
      { pattern: 'server/plugins/kes_windows/**/*.js', ignore: false, trigger: true, load: true, instrument: true, order: 1 },
      { pattern: 'server/**/*.json', instrument: false, ignore: false, trigger: true, load: true, order: 2 },
      { pattern: 'server/custom-winston-logger.js', instrument: false, ignore: false, trigger: true, load: true, order: 3 },
      { pattern: '_build/server/localization/*.json', instrument: false, ignore: false, trigger: true, load: true, order: 4 },
      { pattern: 'templates/**/*.html', instrument: false, ignore: false, trigger: true, load: true, order: 5 },
      { pattern: 'jest.setup.js', instrument: false, ignore: false, trigger: true, load: true, order: 6 },
      { pattern: 'isomorphic-modules/**/*.js', ignore: false, trigger: true, load: true, instrument: true, order: 7 },
      { pattern: 'server/**/*.js', ignore: false, trigger: true, load: true, instrument: true, order: 8 },
      { pattern: 'platform/modules/localeString.js', ignore: false, trigger: true, load: true, instrument: true, order: 9 },
      { pattern: 'core/**/*.js', ignore: false, trigger: true, load: true, instrument: true, order: 10 },
      { pattern: 'server/**/node_modules/**/*.test.js.snap', ignore: true, instrument: false, trigger: true, load: true },
      { pattern: 'server/**/*.test.js.snap', ignore: false, instrument: false, trigger: true, load: true, order: 11 },
      { pattern: 'server/*.test.js.snap', ignore: false, instrument: false, trigger: true, load: true, order: 12 },
      { pattern: 'package.json', ignore: false, instrument: false, trigger: true, load: true, order: 13 }
    ],
    tests: [
      { pattern: 'server/**/node_modules/**/*.test.js', ignore: true, trigger: true, load: true, test: true },
      { pattern: 'server/**/*.test.js', ignore: false, trigger: true, load: true, test: true, order: 14 },
      { pattern: 'server/*.test.js', ignore: false, trigger: true, load: true, test: true, order: 15 }
    ],
    env: { type: 'node', params: {}, runner: 'C:\\nodejs\\node-v13.0.1-win-x64\\node.exe', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    testFramework: { version: 'jest@0.4.3', configurator: 'jest@0.4.3', reporter: 'jest@0.4.3', starter: 'jest@0.4.3' },
    hints: {
      ignoreCoverage: '__REGEXP /istanbul ignore next/',
      ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    trace: true,
    diagnostics: {},
    filesWithNoCoverageCalculated: [],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    addModifiedTestFileToExclusiveTestRun: true,
    compilers: { '**/*.?(lit)coffee?(.md)': [Function (anonymous)] },
    preprocessors: { 'package.json': [Function (anonymous)] },
    maxConsoleMessagesPerTest: 100,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    workers: { initial: 0, regular: 0, recycle: false },
    teardown: undefined,
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    extensions: {},
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: "// const jestConfig = require('./server/jest.config.json')\r\n" +
      '\r\n' +
      'module.exports = function () {\r\n' +
      '  return {\r\n' +
      '    files: [\r\n' +
      "      '!**/node_modules/**/*.json',\r\n" +
      "      '!**/node_modules/**/*.js',\r\n" +
      '\r\n' +
      "      '!**/*.test.js',\r\n" +
      "      '!**/coverage/**/*.js',\r\n" +
      '\r\n' +
      "      'server/plugins/kes_windows/**/*.js',\r\n" +
      '\r\n' +
      "      {pattern: 'server/**/*.json', instrument: false},\r\n" +
      '\r\n' +
      "      {pattern: 'server/custom-winston-logger.js', instrument: false},\r\n" +
      "      {pattern: '_build/server/localization/*.json', instrument: false},\r\n" +
      "      {pattern: 'templates/**/*.html', instrument: false},\r\n" +
      "      {pattern: 'jest.setup.js', instrument: false},\r\n" +
      '\r\n' +
      "      'isomorphic-modules/**/*.js',\r\n" +
      "      'server/**/*.js',\r\n" +
      "      'platform/modules/localeString.js',\r\n" +
      "      'core/**/*.js',\r\n" +
      '    ],\r\n' +
      '\r\n' +
      '    tests: [\r\n' +
      "      '!server/**/node_modules/**/*.test.js',\r\n" +
      '\r\n' +
      "      'server/**/*.test.js',\r\n" +
      "      'server/*.test.js',\r\n" +
      '    ],\r\n' +
      '\r\n' +
      '    env: {\r\n' +
      "      type: 'node',\r\n" +
      '    },\r\n' +
      '\r\n' +
      "    testFramework: 'jest',\r\n" +
      '\r\n' +
      '    hints: {\r\n' +
      '      ignoreCoverage: /istanbul ignore next/,\r\n' +
      '    },\r\n' +
      '\r\n' +
      '    trace: true,\r\n' +
      '  }\r\n' +
      '}\r\n'
  },
  packageJSON: {
    dependencies: {
      '@azure/storage-blob': '12.1.2',
      '@babel/polyfill': '7.8.7',
      '@kl/auto-components': '0.0.67-release-cloud-v7.7',
      '@kl/auto-ui': '3.2.30-release-cloud-v7.2',
      '@kl/component-base': '2.0.7',
      '@kl/components': '2.1.9',
      '@kl/components.list-editor': '1.3.9',
      '@kl/constants': '0.0.23',
      '@kl/localization': '1.1.23-release-cloud-v7.1',
      '@kl/openapi-client': '2.2.52',
      '@kl/runtime': '1.0.7',
      '@types/babel-types': '6.25.0',
      ajv: '6.12.2',
      'assign-symbols': '2.0.2',
      axios: '0.18.0',
      'blob-stream': '0.1.3',
      'body-parser': '1.18.3',
      compression: '1.7.2',
      content: '3.0.3',
      'cookie-parser': '1.4.5',
      cookies: '0.5.1',
      cors: '2.8.4',
      d3: '5.5.0',
      'd3-node': '2.0.1',
      express: '4.16.3',
      'express-async-error': '0.0.2',
      'express-enforces-ssl': '1.1.0',
      'express-jwt': '3.4.0',
      'express-unless': '0.3.1',
      helmet: '1.3.0',
      'html-entities': '1.2.0',
      'https-proxy-agent': '5.0.0',
      immutable: '3.8.1',
      ioredis: '4.0.0',
      jquery: '2.1.4',
      'json-query': '2.2.2',
      jsonwebtoken: '5.7.0',
      keymaster: '1.6.2',
      kue: '0.11.6',
      'load-script': '1.0.0',
      lodash: '4.17.4',
      logrotator: '1.1.0',
      lokijs: '1.4.1',
      mkdirp: '0.5.1',
      moment: '2.22.1',
      multer: '1.3.0',
      'node-fetch': '2.6.0',
      'node-uuid': '1.4.8',
      nunjucks: '3.1.2',
      'object-hash': '1.1.2',
      'path-exists': '3.0.0',
      pdfkit: '0.11.0',
      pm2: '4.5.5',
      promise: '7.0.4',
      redis: '2.7.1',
      request: '2.81.0',
      'request-promise': '4.2.2',
      'require-all': '3.0.0',
      rimraf: '3.0.2',
      riot: '3.2.1',
      'serve-favicon': '2.3.0',
      shortid: '2.2.2',
      'socket.io': '2.3.0',
      'svg-to-pdfkit': '0.1.8',
      'url-parse': '1.1.8',
      validator: '7.0.0',
      winreg: '1.2.4',
      winston: '2.3.1',
      'winston-daily-rotate-file': '1.4.6',
      xml2js: '0.4.19',
      yauzl: '2.10.0'
    },
    devDependencies: {
      '@babel/cli': '7.8.4',
      '@babel/core': '7.9.0',
      '@babel/plugin-transform-async-to-generator': '7.10.4',
      '@babel/plugin-transform-destructuring': '7.9.5',
      '@babel/plugin-transform-runtime': '7.9.0',
      '@babel/plugin-transform-shorthand-properties': '7.8.3',
      '@babel/polyfill': '7.8.7',
      '@babel/preset-env': '7.12.1',
      '@babel/register': '7.9.0',
      '@babel/runtime': '7.9.2',
      '@uirouter/core': '5.0.5',
      'abstract-state-router': '5.13.0',
      argv: '0.0.2',
      'babel-eslint': '10.1.0',
      'babel-jest': '26.3.0',
      'babel-loader': '8.1.0',
      'babel-plugin-syntax-async-functions': '6.13.0',
      'babel-preset-es2015-riot': '1.1.0',
      bluebird: '3.4.7',
      bufferstreams: '1.1.1',
      chai: '4.2.0',
      'chai-as-promised': '7.1.1',
      'chai-dom': '1.8.1',
      'chai-spies': '0.7.1',
      'clean-webpack-plugin': '0.1.15',
      concurrently: '3.1.0',
      'copy-paste': '1.1.4',
      del: '2.2.2',
      dotenv: '4.0.0',
      eslint: '6.8.0',
      'eslint-config-google': '0.14.0',
      'eslint-plugin-import': '2.20.1',
      'event-stream': '3.3.2',
      'extended-define-webpack-plugin': '0.1.3',
      glob: '7.1.6',
      gulp: '4.0.2',
      'gulp-cached': '1.1.0',
      'gulp-concat-util': '0.5.2',
      'gulp-copy': '0.0.2',
      'gulp-dest': '0.2.3',
      'gulp-env': '0.4.0',
      'gulp-express': '0.3.5',
      'gulp-file': '0.4.0',
      'gulp-foreach': '0.1.0',
      'gulp-html-replace': '1.5.4',
      'gulp-htmlmin': '1.3.0',
      'gulp-hub': '0.8.0',
      'gulp-include': '2.3.1',
      'gulp-inject-string': '1.1.0',
      'gulp-install': '0.5.0',
      'gulp-json-concat': '0.0.5',
      'gulp-json-editor': '2.2.1',
      'gulp-jsoncombine': '1.0.4',
      'gulp-less': '4.0.1',
      'gulp-nodemon': '2.5.0',
      'gulp-remove-code': '1.0.2',
      'gulp-rename': '1.2.2',
      'gulp-replace': '0.5.4',
      'gulp-replace-path': '0.4.0',
      'gulp-riot': '1.0.6',
      'gulp-sequence': '1.0.0',
      'gulp-shell': '0.5.2',
      'gulp-standard': '10.1.2',
      'gulp-strip-json-comments': '1.0.2',
      'gulp-uglify-es': '2.0.0',
      'gulp-unique-files': '0.2.0',
      'gulp-yarn': '2.0.0',
      'gulp-zip': '3.0.2',
      'html-minify': '0.3.2',
      'html-minify-loader': '1.4.0',
      'idle-js': '0.1.3',
      immutable: '3.8.1',
      'imports-loader': '0.6.5',
      inquirer: '0.12.0',
      'istanbul-instrumenter-loader': '2.0.0',
      jasmine: '2.4.1',
      'jasmine-core': '2.5.2',
      'jasmine-promises': '0.4.1',
      'javascript-natural-sort': '0.7.1',
      jest: '26.4.2',
      'jest-junit': '10.0.0',
      jquery: '2.1.4',
      'js-cookie': '2.2.0',
      'json-loader': '0.5.7',
      jsonpack: '1.1.5',
      'karma-babel-preprocessor': '6.0.1',
      lokijs: '1.4.1',
      lolex: '1.5.0',
      marked: '0.3.6',
      'merge-stream': '1.0.0',
      mocha: '7.0.0',
      'mocha-teamcity-reporter': '1.1.1',
      'next-tick': '1.0.0',
      nock: '2.18.2',
      'node-watch': '0.6.4',
      npmbox: '4.2.0',
      open: '0.0.5',
      playwright: '1.0.1',
      'raw-loader': '0.5.1',
      'remove-strict-webpack-plugin': '0.1.2',
      riot: '3.2.1',
      'riot-compiler': '3.6.0',
      'serve-favicon': '2.3.0',
      shortid: '2.2.2',
      should: '8.2.0',
      sinon: '9.0.0',
      'sinon-chai': '3.5.0',
      'socket.io-client': '2.3.0',
      standard: '10.0.3',
      supertest: '1.1.0',
      testem: '3.0.2',
      'ts-loader': '6.2',
      tslint: '5.10.0',
      'tslint-config-standard': '6.0.1',
      typescript: '2.1.5',
      vinyl: '2.0.1',
      webpack: '4.42.1',
      'webpack-cli': '3.3.11',
      'webpack-dev-server': '3.10.3',
      'webpack-strip-block': '0.1.0'
    }
  },
  fs: { numberOfFiles: 702 },
  debug: [
    '2021-03-19T17:16:31.344Z project Wallaby Node version: v13.0.1\n',
    '2021-03-19T17:16:31.344Z project Wallaby config: C:\\Projects\\***\\app\\wallaby.server.js\n',
    '2021-03-19T17:16:39.979Z fs File system scan has finished by timeout\n',
    '2021-03-19T17:16:39.991Z project File cache: C:\\Users\\dovger\\AppData\\Local\\JetBrains\\WebStorm2020.2\\wallaby\\projects\\6d1a45fac74873a6\n',
    '2021-03-19T17:16:40.144Z uiService Listening port 51235\n',
    '2021-03-19T17:16:40.653Z workers Parallelism for initial run: 2, for regular run: 2\n',
    '2021-03-19T17:16:40.653Z workers Starting run worker instance #0\n',
    '2021-03-19T17:16:40.654Z workers Starting run worker instance #1\n',
    '2021-03-19T17:16:40.674Z workers Web server is listening at 53131\n',
    '2021-03-19T17:16:41.985Z workers Started run worker instance (delayed) #0\n',
    '2021-03-19T17:16:42.006Z workers Started run worker instance (delayed) #1\n',
    '2021-03-19T17:16:42.511Z project Stopping process pool\n',
    '2021-03-19T17:16:42.512Z project File cache is up-to-date, starting full test run\n',
    '2021-03-19T17:16:42.528Z project Running postprocessor\n',
    '2021-03-19T17:16:42.548Z postprocessor New TypeScript language service is required\n',
    "2021-03-19T17:16:42.559Z postprocessor TypeScript postprocessor will be removed because in 701 project files none were found by patterns: [ '**/*.ts?(x)' ]\n",
    '2021-03-19T17:16:42.561Z project Postprocessor execution finished\n',
    '2021-03-19T17:16:42.562Z project Postprocessor is removed as requested by itself\n',
    '2021-03-19T17:16:42.562Z project Test run started; run priority: 3\n',
    '2021-03-19T17:16:42.562Z project Running all tests\n',
    '2021-03-19T17:16:42.569Z workers Starting test run, priority: 3\n',
    '2021-03-19T17:16:42.569Z workers Distributing tests between 2 workers\n',
    '2021-03-19T17:16:42.570Z workers Running tests in parallel\n',
    '2021-03-19T17:16:42.570Z nodeRunner Starting sandbox [worker #0, session #1zttq]\n',
    '2021-03-19T17:16:42.570Z nodeRunner Starting sandbox [worker #1, session #7174e]\n',
    '2021-03-19T17:16:42.571Z nodeRunner Preparing sandbox [worker #0, session #1zttq]\n',
    '2021-03-19T17:16:42.571Z nodeRunner Preparing sandbox [worker #1, session #7174e]\n',
    '2021-03-19T17:16:42.571Z nodeRunner Prepared sandbox [worker #0, session #1zttq]\n',
    '2021-03-19T17:16:42.571Z nodeRunner Prepared sandbox [worker #1, session #7174e]\n',
    '2021-03-19T17:16:42.571Z workers [worker #0, session #1zttq] Running tests in sandbox\n',
    '2021-03-19T17:16:42.572Z workers [worker #1, session #7174e] Running tests in sandbox\n',
    '2021-03-19T17:16:48.764Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:48.770Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:53.946Z workers [7174e] Test executed: default settings\n',
    '2021-03-19T17:16:54.055Z workers [7174e] Test executed: RUT does not exist\n',
    '2021-03-19T17:16:54.108Z workers [7174e] Test executed: RUT task already exists\n',
    '2021-03-19T17:16:54.115Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:54.118Z workers [7174e] Test executed: getParser\n',
    '2021-03-19T17:16:54.123Z workers [7174e] Test executed: getTask\n',
    '2021-03-19T17:16:54.127Z workers [7174e] Test executed: getTaskID\n',
    '2021-03-19T17:16:54.128Z workers [7174e] Test executed: getTaskIDs\n',
    '2021-03-19T17:16:54.133Z workers [7174e] Test executed: getTaskIDsCumulative\n',
    '2021-03-19T17:16:54.135Z workers [7174e] Test executed: getTaskIDMac\n',
    '2021-03-19T17:16:54.783Z workers [1zttq] Test executed: decode data\n',
    '2021-03-19T17:16:54.988Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:54.999Z workers [1zttq] Test executed: default settings\n',
    '2021-03-19T17:16:55.002Z workers [1zttq] Test executed: restartOption: do_not_restart_device\n',
    '2021-03-19T17:16:55.008Z workers [1zttq] Test executed: restartOption: restart_device\n',
    '2021-03-19T17:16:55.015Z workers [1zttq] Test executed: restartOption: any other option\n',
    '2021-03-19T17:16:55.016Z workers [1zttq] Test executed: restartOption: restartDevice\n',
    '2021-03-19T17:16:55.021Z workers [1zttq] Test executed: restartOption: userName && userPassword\n',
    '2021-03-19T17:16:55.027Z workers [1zttq] Test executed: restartOption: userName && userPassword is ""\n',
    '2021-03-19T17:16:55.451Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.463Z workers [1zttq] Test executed: restartOption: prompt_user_for_action\n',
    '2021-03-19T17:16:55.504Z workers [1zttq] Test executed: restartDevice: false\n',
    '2021-03-19T17:16:55.505Z workers [1zttq] Test executed: restartOption: do_not_restart_device\n',
    '2021-03-19T17:16:55.506Z workers [1zttq] Test executed: restartOption: restart_device\n',
    '2021-03-19T17:16:55.506Z workers [1zttq] Test executed: reboot_message\n',
    '2021-03-19T17:16:55.507Z workers [1zttq] Test executed: userName, userPassword\n',
    '2021-03-19T17:16:55.509Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.509Z workers [1zttq] Test executed: baseParser\n',
    '2021-03-19T17:16:55.510Z workers [1zttq] Test executed: error\n',
    '2021-03-19T17:16:55.510Z workers [1zttq] Test executed: mapping: as function\n',
    '2021-03-19T17:16:55.511Z workers [1zttq] Test executed: mapping: as value\n',
    '2021-03-19T17:16:55.511Z workers [1zttq] Test executed: mapping: as value\n',
    '2021-03-19T17:16:55.512Z workers [1zttq] Test executed: mapping: _mergeFns\n',
    '2021-03-19T17:16:55.512Z workers [1zttq] Test executed: mapping: _excludeFns\n',
    '2021-03-19T17:16:55.513Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.513Z workers [1zttq] Test executed: structure-to-string/1\n',
    '2021-03-19T17:16:55.516Z workers [1zttq] Test executed: structure-to-string/2\n',
    '2021-03-19T17:16:55.517Z workers [1zttq] Test executed: structure-to-string/3\n',
    '2021-03-19T17:16:55.517Z workers [1zttq] Test executed: structure-to-string/IPv6Zone\n',
    '2021-03-19T17:16:55.517Z workers [1zttq] Test executed: string-to-structure/1\n',
    '2021-03-19T17:16:55.518Z workers [1zttq] Test executed: string-to-structure/2\n',
    '2021-03-19T17:16:55.518Z workers [1zttq] Test executed: string-to-structure/3\n',
    '2021-03-19T17:16:55.519Z workers [1zttq] Test executed: string-to-structure/IPv6Zone\n',
    '2021-03-19T17:16:55.520Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.521Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("android" || "ios")\n',
    '2021-03-19T17:16:55.521Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("mac" && nagent is 10)\n',
    '2021-03-19T17:16:55.522Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("scheduled")\n',
    '2021-03-19T17:16:55.522Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("error")\n',
    '2021-03-19T17:16:55.523Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("done")\n',
    '2021-03-19T17:16:55.523Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("done" && number & 4 === 0)\n',
    '2021-03-19T17:16:55.525Z workers [1zttq] Test executed: transformDevices -> extendByRUTaskState ("manual" && "asUndefined")\n',
    '2021-03-19T17:16:55.525Z workers [1zttq] Test executed: transformDevices -> extendByHostListRemoved ()\n',
    '2021-03-19T17:16:55.526Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.526Z workers [1zttq] Test executed: status - "deleted"\n',
    '2021-03-19T17:16:55.527Z workers [1zttq] Test executed: status - "processing"\n',
    '2021-03-19T17:16:55.528Z workers [1zttq] Test executed: status "done", not folder\n',
    '2021-03-19T17:16:55.528Z workers [1zttq] Test executed: status "done", has folder\n',
    '2021-03-19T17:16:55.529Z workers [1zttq] Test executed: status is not defined, has folder\n',
    '2021-03-19T17:16:55.529Z workers [1zttq] Test executed: status is not defined, no folder\n',
    '2021-03-19T17:16:55.530Z workers [1zttq] Test executed: status is not defined, has folder, file access error\n',
    '2021-03-19T17:16:55.531Z workers [1zttq] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.531Z workers [1zttq] Test executed: baseParser\n',
    '2021-03-19T17:16:55.531Z workers [1zttq] Test executed: check "invite-user.tmpl.html" template\n',
    '2021-03-19T17:16:55.700Z workers [1zttq] Run 46 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:16:55.702Z workers [1zttq] Sandbox is responsive, closing it\n',
    '2021-03-19T17:16:55.911Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:55.934Z workers [7174e] Test executed: restartOption: prompt_user_for_action\n',
    '2021-03-19T17:16:55.977Z workers [7174e] Test executed: restartDevice: false\n',
    '2021-03-19T17:16:56.378Z workers [7174e] Test executed: restartOption: do_not_restart_device\n',
    '2021-03-19T17:16:56.379Z workers [7174e] Test executed: restartOption: restart_device\n',
    '2021-03-19T17:16:56.411Z workers [7174e] Test executed: reboot_message\n',
    '2021-03-19T17:16:56.412Z workers [7174e] Test executed: userName, userPassword\n',
    '2021-03-19T17:16:56.414Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:56.414Z workers [7174e] Test executed: baseParser\n',
    '2021-03-19T17:16:56.415Z workers [7174e] Test executed: mapping: function\n',
    '2021-03-19T17:16:56.416Z workers [7174e] Test executed: mapping: string path\n',
    '2021-03-19T17:16:56.417Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:56.418Z workers [7174e] Test executed: getDataFromKSC\n',
    '2021-03-19T17:16:56.418Z workers [7174e] Test executed: requestKSCData (empty data)\n',
    '2021-03-19T17:16:56.419Z workers [7174e] Test executed: requestKSCData (has data)\n',
    '2021-03-19T17:16:56.419Z workers [7174e] Test executed: requestHostsTaskStatuses (empty data)\n',
    '2021-03-19T17:16:56.420Z workers [7174e] Test executed: requestHostsTaskStatuses (no task statuses)\n',
    '2021-03-19T17:16:56.420Z workers [7174e] Test executed: requestHostsTaskStatuses (has task statuses)\n',
    '2021-03-19T17:16:56.421Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:56.422Z workers [7174e] Test executed: status - "deleted"\n',
    '2021-03-19T17:16:56.422Z workers [7174e] Test executed: status - "processing"\n',
    '2021-03-19T17:16:56.423Z workers [7174e] Test executed: status "done", not folder\n',
    '2021-03-19T17:16:56.423Z workers [7174e] Test executed: status "done", has folder\n',
    '2021-03-19T17:16:56.424Z workers [7174e] Test executed: status is not defined, has folder\n',
    '2021-03-19T17:16:56.424Z workers [7174e] Test executed: status is not defined, no folder\n',
    '2021-03-19T17:16:56.424Z workers [7174e] Test executed: status is not defined, has folder, file access error\n',
    '2021-03-19T17:16:56.426Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:56.426Z workers [7174e] Test executed: check request - invalid request data\n',
    '2021-03-19T17:16:56.427Z workers [7174e] Test executed: check request - warning about licence\n',
    '2021-03-19T17:16:56.427Z workers [7174e] Test executed: check request - licence is not valid\n',
    '2021-03-19T17:16:56.428Z workers [7174e] Test executed: status: processing\n',
    '2021-03-19T17:16:56.428Z workers [7174e] Test executed: generate report\n',
    '2021-03-19T17:16:56.429Z workers [7174e] Test executed: generate report (en)\n',
    '2021-03-19T17:16:56.429Z workers [7174e] Test executed: generate report (ja)\n',
    '2021-03-19T17:16:56.430Z workers [7174e] Loaded unknown number of test(s)\n',
    '2021-03-19T17:16:56.431Z workers [7174e] Test executed: base\n',
    '2021-03-19T17:16:56.431Z workers [7174e] Test executed: example 1\n',
    '2021-03-19T17:16:56.433Z workers [7174e] Test executed: example 2\n',
    '2021-03-19T17:16:56.433Z workers [7174e] Test executed: example 3\n',
    '2021-03-19T17:16:56.433Z workers [7174e] Test executed: example 4\n',
    '2021-03-19T17:16:56.434Z workers [7174e] Test executed: example 5: rewrite\n',
    '2021-03-19T17:16:56.434Z workers [7174e] Test executed: example 6: rewrite\n',
    '2021-03-19T17:16:56.575Z workers [7174e] Run 45 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:16:56.577Z workers [7174e] Sandbox is responsive, closing it\n',
    '2021-03-19T17:16:56.577Z workers Merging parallel test run results\n',
    '2021-03-19T17:16:56.585Z project Test run finished\n',
    '2021-03-19T17:16:56.586Z project Processed console.log entries\n',
    '2021-03-19T17:16:56.586Z project Processed loading sequences\n',
    '2021-03-19T17:16:56.587Z project Test name duplicate: mapping: as value\n',
    '2021-03-19T17:16:56.588Z project Processed executed tests\n',
    '2021-03-19T17:16:56.662Z project Processed code coverage\n',
    '2021-03-19T17:16:56.904Z project Test run result processed and sent to IDE\n',
    '2021-03-19T17:19:07.268Z project Test run started; run priority: 2\n',
    '2021-03-19T17:19:07.269Z testTask Test files from affected: 0, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2021-03-19T17:19:07.281Z project Test run finished\n',
    '2021-03-19T17:19:07.281Z project Test run data re-queued\n',
    '2021-03-19T17:23:40.063Z fs File changed: ***/***-***/***/***-***-key.test.js\n',
    '2021-03-19T17:23:40.103Z extended-core New file or complex file change\n',
    '2021-03-19T17:23:40.132Z project Test run started; run priority: 2\n',
    '2021-03-19T17:23:40.133Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 1\n',
    '2021-03-19T17:23:40.143Z workers Starting test run, priority: 2\n',
    '2021-03-19T17:23:40.143Z nodeRunner Starting sandbox [worker #0, session #5h5yy]\n',
    '2021-03-19T17:23:40.144Z nodeRunner Preparing sandbox [worker #0, session #5h5yy]\n',
    '2021-03-19T17:23:40.144Z nodeRunner Prepared sandbox [worker #0, session #5h5yy]\n',
    '2021-03-19T17:23:40.144Z workers [worker #0, session #5h5yy] Running tests in sandbox\n',
    '2021-03-19T17:23:40.145Z fs File changed in editor: ***/***-***/***/***-***-key.test.js\n',
    '2021-03-19T17:23:40.146Z fs No changes detected for ***/***-***/***/***-***-key.test.js\n',
    '2021-03-19T17:23:40.146Z extended-core File was not changed, but file markers may need to be synced\n',
    '2021-03-19T17:23:41.480Z workers [5h5yy] Loaded unknown number of test(s)\n',
    '2021-03-19T17:23:41.532Z workers [5h5yy] Test executed: decode data\n',
    '2021-03-19T17:23:41.863Z workers [5h5yy] Run 1 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:23:41.865Z workers [5h5yy] Sandbox is responsive, closing it\n',
    '2021-03-19T17:23:41.865Z project Test run finished\n',
    '2021-03-19T17:23:41.866Z project Processed console.log entries\n',
    '2021-03-19T17:23:41.866Z project Processed loading sequences\n',
    '2021-03-19T17:23:41.866Z project Processed executed tests\n',
    '2021-03-19T17:23:41.897Z project Processed code coverage\n',
    '2021-03-19T17:23:41.928Z project Test run result processed and sent to IDE\n',
    '2021-03-19T17:23:51.851Z fs File changed in editor: ***/***-***/***/***-key.js\n',
    '2021-03-19T17:23:51.851Z extended-core New file or complex file change\n',
    '2021-03-19T17:23:51.904Z project Test run started; run priority: 2\n',
    '2021-03-19T17:23:51.904Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 3, from failing: 1\n',
    '2021-03-19T17:23:51.913Z workers Starting test run, priority: 2\n',
    '2021-03-19T17:23:51.913Z workers Distributing tests between 2 workers\n',
    '2021-03-19T17:23:51.914Z workers Running tests in parallel\n',
    '2021-03-19T17:23:51.914Z nodeRunner Starting sandbox [worker #0, session #wdh3m]\n',
    '2021-03-19T17:23:51.914Z nodeRunner Starting sandbox [worker #1, session #pfgh2]\n',
    '2021-03-19T17:23:51.914Z nodeRunner Preparing sandbox [worker #0, session #wdh3m]\n',
    '2021-03-19T17:23:51.914Z nodeRunner Preparing sandbox [worker #1, session #pfgh2]\n',
    '2021-03-19T17:23:51.914Z nodeRunner Prepared sandbox [worker #0, session #wdh3m]\n',
    '2021-03-19T17:23:51.914Z nodeRunner Prepared sandbox [worker #1, session #pfgh2]\n',
    '2021-03-19T17:23:51.914Z workers [worker #0, session #wdh3m] Running tests in sandbox\n',
    '2021-03-19T17:23:51.915Z workers [worker #1, session #pfgh2] Running tests in sandbox\n',
    '2021-03-19T17:23:55.213Z workers [pfgh2] Loaded unknown number of test(s)\n',
    '2021-03-19T17:23:55.288Z workers [pfgh2] Test executed: status - "deleted"\n',
    '2021-03-19T17:23:55.294Z workers [pfgh2] Test executed: status - "processing"\n',
    '2021-03-19T17:23:55.300Z workers [pfgh2] Test executed: status "done", not folder\n',
    '2021-03-19T17:23:55.307Z workers [pfgh2] Test executed: status "done", has folder\n',
    '2021-03-19T17:23:55.315Z workers [pfgh2] Test executed: status is not defined, has folder\n',
    '2021-03-19T17:23:55.322Z workers [pfgh2] Test executed: status is not defined, no folder\n',
    '2021-03-19T17:23:55.533Z workers [wdh3m] Loaded unknown number of test(s)\n',
    '2021-03-19T17:23:55.590Z workers [wdh3m] Test executed: decode data\n',
    '2021-03-19T17:23:55.655Z workers [wdh3m] Loaded unknown number of test(s)\n',
    '2021-03-19T17:23:55.659Z workers [wdh3m] Test executed: status - "deleted"\n',
    '2021-03-19T17:23:55.661Z workers [wdh3m] Test executed: status - "processing"\n',
    '2021-03-19T17:23:55.666Z workers [wdh3m] Test executed: status "done", not folder\n',
    '2021-03-19T17:23:55.667Z workers [wdh3m] Test executed: status "done", has folder\n',
    '2021-03-19T17:23:55.672Z workers [wdh3m] Test executed: status is not defined, has folder\n',
    '2021-03-19T17:23:55.678Z workers [wdh3m] Test executed: status is not defined, no folder\n',
    '2021-03-19T17:23:55.698Z workers [wdh3m] Test executed: status is not defined, has folder, file access error\n',
    '2021-03-19T17:23:55.917Z workers [wdh3m] Run 8 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:23:55.918Z workers [wdh3m] Sandbox is responsive, closing it\n',
    '2021-03-19T17:23:56.603Z workers [pfgh2] Test executed: status is not defined, has folder, file access error\n',
    '2021-03-19T17:23:56.686Z workers [pfgh2] Loaded unknown number of test(s)\n',
    '2021-03-19T17:23:56.687Z workers [pfgh2] Test executed: check request - invalid request data\n',
    '2021-03-19T17:23:56.688Z workers [pfgh2] Test executed: check request - warning about licence\n',
    '2021-03-19T17:23:56.688Z workers [pfgh2] Test executed: check request - licence is not valid\n',
    '2021-03-19T17:23:56.689Z workers [pfgh2] Test executed: status: processing\n',
    '2021-03-19T17:23:56.689Z workers [pfgh2] Test executed: generate report\n',
    '2021-03-19T17:23:56.690Z workers [pfgh2] Test executed: generate report (en)\n',
    '2021-03-19T17:23:56.691Z workers [pfgh2] Test executed: generate report (ja)\n',
    '2021-03-19T17:23:56.853Z workers [pfgh2] Run 14 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:23:56.855Z workers [pfgh2] Sandbox is responsive, closing it\n',
    '2021-03-19T17:23:56.855Z workers Merging parallel test run results\n',
    '2021-03-19T17:23:56.860Z project Test run finished\n',
    '2021-03-19T17:23:56.860Z project Processed console.log entries\n',
    '2021-03-19T17:23:56.861Z project Processed loading sequences\n',
    '2021-03-19T17:23:56.861Z project Processed executed tests\n',
    '2021-03-19T17:23:56.886Z project Processed code coverage\n',
    '2021-03-19T17:23:56.947Z project Test run result processed and sent to IDE\n',
    '2021-03-19T17:23:57.171Z fs File changed: ***-key.js\n',
    '2021-03-19T17:23:57.246Z project Test run started; run priority: 2\n',
    '2021-03-19T17:23:57.246Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 3, from failing: 1\n',
    '2021-03-19T17:23:57.253Z workers Starting test run, priority: 2\n',
    '2021-03-19T17:23:57.253Z workers Distributing tests between 2 workers\n',
    '2021-03-19T17:23:57.253Z workers Running tests in parallel\n',
    '2021-03-19T17:23:57.253Z nodeRunner Starting sandbox [worker #0, session #aotax]\n',
    '2021-03-19T17:23:57.253Z nodeRunner Starting sandbox [worker #1, session #bqx21]\n',
    '2021-03-19T17:23:57.253Z nodeRunner Preparing sandbox [worker #0, session #aotax]\n',
    '2021-03-19T17:23:57.253Z nodeRunner Preparing sandbox [worker #1, session #bqx21]\n',
    '2021-03-19T17:23:57.253Z nodeRunner Prepared sandbox [worker #0, session #aotax]\n',
    '2021-03-19T17:23:57.253Z nodeRunner Prepared sandbox [worker #1, session #bqx21]\n',
    '2021-03-19T17:23:57.253Z workers [worker #0, session #aotax] Running tests in sandbox\n',
    '2021-03-19T17:23:57.254Z workers [worker #1, session #bqx21] Running tests in sandbox\n',
    '2021-03-19T17:23:57.269Z fs File changed in editor: ***-key.js\n',
    '2021-03-19T17:23:57.269Z fs No changes detected for ***-key.js\n',
    "2021-03-19T17:23:57.761Z workers Sandbox (active) [aotax] error: Error: Cannot find module './***.node' from '../../../Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js'\n" +
      '\n' +
      'Require stack:\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/***-key.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/runtime.setup.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/jest.setup.js\n' +
      '\n',
    "2021-03-19T17:23:57.781Z workers Sandbox (active) [bqx21] error: Error: Cannot find module './***.node' from '../../../Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js'\n" +
      '\n' +
      'Require stack:\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/***-key.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***.setup.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/jest.setup.js\n' +
      '\n',
    '2021-03-19T17:23:57.877Z workers [aotax] Run 0 test(s), skipped 0 test(s)\n',
    '2021-03-19T17:23:57.887Z workers [bqx21] Run 0 test(s), skipped 0 test(s)\n',
    "2021-03-19T17:23:58.147Z workers Sandbox (inactive) [aotax] error: Error: Cannot find module './kes_node_addon.node' from '../../../Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js'\n" +
      '\n' +
      'Require stack:\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/***-key.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***.setup.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/jest.setup.js\n' +
      '\n',
    "2021-03-19T17:23:58.153Z workers Sandbox (inactive) [bqx21] error: Error: Cannot find module './kes_node_addon.node' from '../../../Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js'\n" +
      '\n' +
      'Require stack:\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/***-key.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***-***/index.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/***/***.setup.js\n' +
      '  C:/Users/dovger/AppData/Local/JetBrains/WebStorm2020.2/wallaby/projects/6d1a45fac74873a6/instrumented/jest.setup.js\n' +
      '\n',
    '2021-03-19T17:23:58.508Z workers [aotax] Sandbox is responsive, closing it\n',
    '2021-03-19T17:23:58.535Z workers [bqx21] Sandbox is responsive, closing it\n',
    '2021-03-19T17:23:58.535Z workers Merging parallel test run results\n',
    '2021-03-19T17:23:58.536Z project Test run finished\n',
    '2021-03-19T17:23:58.536Z project Processed console.log entries\n',
    '2021-03-19T17:23:58.536Z project Processed loading sequences\n',
    '2021-03-19T17:23:58.536Z project Processed executed tests\n',
    '2021-03-19T17:23:58.536Z project Processed code coverage\n',
    '2021-03-19T17:23:58.540Z project Test run result processed and sent to IDE\n'
  ]
}
smcenlly commented 3 years ago

Wallaby supports two types of jest configuration, Automatic and Manual; you have specified a manual jest configuration. Could you please switch to use automatic configuration, it should fix your problem. Steps for doing this are described in our docs. I can see that your jest configuration file location is not standard. You can set the location in your configuration file:

wallaby.js

{
  autoDetect: true,
  testFramework: {
    configFile: "./server/jest.config.json"
  },
  hints: {
    ignoreCoverage: /istanbul ignore next/,\r\n' +
  }
}

If your jest tests are running outside of Wallaby, then they should work inside Wallaby with these settings.

smcenlly commented 3 years ago

I'm going to assume that our suggestion solved your problem. If not, please reply and we'll re-open the issue.

olegdovger commented 3 years ago

It works. )) 🚀 💯 Thank you