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

Tests take long time to run (2.4 minute!!) #2470

Closed
stijnvanderlaan opened this issue Jul 3, 2020 · 7 comments
Closed

Tests take long time to run (2.4 minute!!) #2470

stijnvanderlaan opened this issue Jul 3, 2020 · 7 comments

Comments

@stijnvanderlaan
Copy link

Issue description or question

Tests take long time to run. Also the console output gives a lot of errors:
[Error] Some long running code has been detected: one of your tests is taking more than 5000ms to execute. 

I do not have a wallaby config.

I did not have this problem before I updated the license.
Normal jest runs in 13 seconds and 3 seconds rerun, but wallaby runs 2.4 minute:
Finished executing 134 affected test(s) in 2.4 minute(s)

Wallaby diagnostics report

{
  editorVersion: '1.46.1',
  pluginVersion: '1.0.213',
  editorType: 'VSCode',
  osVersion: 'darwin 19.5.0',
  nodeVersion: 'v12.6.0',
  coreVersion: '1.0.920',
  config: {
    diagnostics: {
      jest: {
        config: {
          configs: [
            {
              automock: false,
              cache: true,
              cacheDirectory: '/private/var/folders/1x/spy4sxns25v6097kmnpymzxh0000gp/T/jest_dy',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '/node_modules/' ],
              cwd: '<homeDir>/Workspace/...',
              dependencyExtractor: undefined,
              detectLeaks: undefined,
              detectOpenHandles: undefined,
              displayName: undefined,
              errorOnDeprecated: false,
              extraGlobals: [],
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: { 'ts-jest': { isolatedModules: true } },
              haste: { computeSha1: false, throwOnModuleCollision: false },
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'js', 'json', 'jsx', 'ts', 'tsx', 'node' ],
              moduleLoader: undefined,
              moduleNameMapper: [],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: 'd2952eb49815f303a5c2aecc27ea4268',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: undefined,
              restoreMocks: false,
              rootDir: '<homeDir>/Workspace/...',
              roots: [ '<homeDir>/Workspace/...' ],
              runner: 'jest-runner',
              setupFiles: [],
              setupFilesAfterEnv: [],
              skipFilter: false,
              skipNodeResolution: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [],
              testEnvironment: '<homeDir>/Workspace/..../node_modules/jest-environment-node/build/index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
              testPathIgnorePatterns: [ '/node_modules/' ],
              testRegex: [],
              testRunner: '<homeDir>/Workspace/..../node_modules/jest-jasmine2/build/index.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [ [ '^.+\\.tsx?$', '<homeDir>/Workspace/..../node_modules/ts-jest/dist/index.js', {} ] ],
              transformIgnorePatterns: [ '/node_modules/' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: [],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: '<homeDir>/Workspace/..../coverage',
            coverageProvider: 'babel',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: undefined,
            detectLeaks: undefined,
            detectOpenHandles: undefined,
            enabledTestsMap: undefined,
            errorOnDeprecated: false,
            expand: false,
            filter: undefined,
            findRelatedTests: false,
            forceExit: false,
            globalSetup: undefined,
            globalTeardown: undefined,
            json: false,
            lastCommit: false,
            listTests: undefined,
            logHeapUsage: false,
            maxConcurrency: 5,
            maxWorkers: 7,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: false,
            onlyFailures: false,
            outputFile: undefined,
            passWithNoTests: undefined,
            projects: [],
            replname: undefined,
            reporters: undefined,
            rootDir: '<homeDir>/Workspace/.....',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: undefined,
            testSequencer: '<homeDir>/Workspace/..../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/|/\\.cache/|/\\.idea/|/\\.vscode/|/\\.git/|/\\.gitlab/' ],
            testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|/\\.cache/|/\\.idea/|/\\.vscode/|/\\.git/|/\\.gitlab/' ],
            testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
            testRegex: []
          }
        }
      }
    },
    testFramework: { version: 'jest@24.8.0', configurator: 'jest@24.8.0', reporter: 'jest@24.8.0', starter: 'jest@24.8.0', autoDetected: true },
    filesWithCoverageCalculated: [],
    globalSetup: false,
    micromatch: true,
    files: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true },
      {
        pattern: '\\./dist/|\\./build/|\\./coverage/|/\\.cache/|/\\.idea/|/\\.vscode/|/\\.git/|/\\.gitlab/',
        regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\/\.cache\/|\/\.idea\/|\/\.vscode\/|\/\.git\/|\/\.gitlab\//,
        ignore: true,
        trigger: true,
        load: true
      },
      { pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: true, trigger: true, load: true },
      { pattern: '**/?(*.)+(spec|test).[tj]s?(x)', ignore: true, trigger: true, load: true }
    ],
    tests: [
      { pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, test: true },
      {
        pattern: '\\./dist/|\\./build/|\\./coverage/|/\\.cache/|/\\.idea/|/\\.vscode/|/\\.git/|/\\.gitlab/',
        regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\/\.cache\/|\/\.idea\/|\/\.vscode\/|\/\.git\/|\/\.gitlab\//,
        ignore: true,
        trigger: true,
        load: true,
        test: true
      },
      { pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 },
      { pattern: '**/?(*.)+(spec|test).[tj]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 3 }
    ],
    filesWithNoCoverageCalculated: [],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    preprocessors: {},
    maxConsoleMessagesPerTest: 100,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    workers: { initial: 0, regular: 0, recycle: false },
    teardown: undefined,
    hints: {
      ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore/',
      ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    extensions: {},
    env: { type: 'node', params: {}, runner: '<homeDir>/.nvm/versions/node/v12.6.0/bin/node', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: 'auto.detect#1885170066'
  },
  packageJSON: {
    dependencies: {
      '@fortawesome/fontawesome-svg-core': '^1.2.15',
      '@fortawesome/free-regular-svg-icons': '^5.7.2',
      '@fortawesome/free-solid-svg-icons': '^5.7.2',
      '@fortawesome/react-fontawesome': '^0.1.4',
      '@types/react-redux': '^7.1.7',
      '@types/react-transition-group': '^2.9.0',
      'are-passive-events-supported': '^1.1.1',
      'array-shuffle': '^1.0.1',
      'audiobuffer-to-wav': '^1.0.0',
      coffeescript: '1.12.7',
      'core-js': '^3.2.1',
      'css-loader': '^0.28.11',
      'date-fns': '^2.11.1',
      'es6-promise': '^4.2.8',
      'es6-symbol': '^3.1.1',
      'fetch-suspense': '^1.2.2',
      'file-loader': '^1.1.11',
      'file-saver': '^2.0.0',
      'font-awesome': '^4.7.0',
      history: '^4.7.2',
      immutable: '^4.0.0-rc.12',
      'increase-memory-limit': '^1.0.6',
      'jquery-contextmenu': 'https://github.com/robbertmonsters/jQuery-contextMenu#develop',
      'json-loader': '^0.5.7',
      jspdf: '^1.5.3',
      'owl.carousel': '^2.3.4',
      'print-html-element': '^0.5.1',
      'promise-polyfill': '^7.1.1',
      'prop-types': '^15.6.0',
      raincheck: '0.4.0-alpha.5',
      react: '^16.8.6',
      'react-cool-portal': '^1.0.12',
      'react-dom': '^16.8.6',
      'react-native-vector-icons': '^4.4.2',
      'react-native-web': '^0.1.14',
      'react-onclickoutside': '^6.7.1',
      'react-player': '^1.5.1',
      'react-redux': '^7.1.0',
      'react-spring': '^8.0.18',
      'react-textfit': '^1.1.0',
      'react-transition-group': '^2.7.1',
      'react-youtube': '^7.5.0',
      reactxp: '^2.0.0',
      redux: '^3.7.2',
      'redux-first-router': '^0.0.16-next',
      'redux-loop': '^4.2.3',
      reselect: '^4.0.0',
      'spin.js': '^3.1.0',
      'style-loader': '^0.21.0',
      tone: '^13.8.25',
      'ua-parser-js': '^0.7.17',
      'url-loader': '^0.6.2',
      'use-latest': '^1.0.0',
      'use-onclickoutside': '^0.3.1',
      'user-agent-parser': '^0.6.0',
      useragent: '^2.3.0',
      uuid: '^3.3.2',
      'video-react': '^0.9.4',
      webpack: '^4.29.6',
      'webpack-cli': '^3.3.0',
      'webpack-dev-server': '^3.1.4',
      'webpack-merge': '^4.1.1',
      'wicg-focus-ring': '^3.0.2'
    },
    devDependencies: {
      '@babel/preset-typescript': '^7.10.4',
      '@types/jest': '^21.1.5',
      '@types/redux-first-router': '^1.10.2',
      '@types/useragent': '^2.1.1',
      'babel-plugin-syntax-dynamic-import': '^6.18.0',
      'babel-plugin-transform-object-rest-spread': '^6.26.0',
      jest: '^26.1.0',
      'json-loader': '^0.5.7',
      'react-tiny-popover': '^3.4.5',
      rimraf: '^2.6.2',
      'ts-jest': '^26.1.1',
      'ts-loader': '^5.3.3',
      typescript: '^3.9.6',
      'url-loader': '^0.6.2'
    }
  },
  fs: { numberOfFiles: 30985 },
  debug: [
    '2020-07-03T08:47:24.887Z angular/cli config Angular CLI not found.\n',
    '2020-07-03T08:47:24.955Z jest/config Detected Jest.\n',
    '2020-07-03T08:47:24.956Z jest/config Configured Jest.\n',
    '2020-07-03T08:47:24.957Z project Wallaby Node version: v12.6.0\n',
    '2020-07-03T08:47:24.957Z project Wallaby config: <homeDir>/Workspace/..../auto.detect\n',
    '2020-07-03T08:47:35.052Z project File cache: <homeDir>/.vscode/extensions/wallabyjs.wallaby-vscode-1.0.213/projects/1ca7bd2ced3fe0e7\n',
    '2020-07-03T08:47:35.062Z uiService Listening port 51235\n',
    '2020-07-03T08:47:35.120Z project package.json file change detected, invalidating local cache\n',
    '2020-07-03T08:47:37.588Z workers Parallelism for initial run: 6, for regular run: 3\n',
    '2020-07-03T08:47:37.588Z workers Starting run worker instance #0\n',
    '2020-07-03T08:47:37.589Z workers Starting run worker instance #1\n',
    '2020-07-03T08:47:37.589Z workers Starting run worker instance #2\n',
    '2020-07-03T08:47:37.589Z workers Starting run worker instance #3\n',
    '2020-07-03T08:47:37.589Z workers Starting run worker instance #4\n',
    '2020-07-03T08:47:37.589Z workers Starting run worker instance #5\n',
    '2020-07-03T08:47:37.589Z workers Web server is listening at 61619\n',
    '2020-07-03T08:47:37.589Z project File cache requires some updates, waiting required files from IDE\n',
    '2020-07-03T08:47:38.304Z workers Started run worker instance (delayed) #1\n',
    '2020-07-03T08:47:38.394Z workers Started run worker instance (delayed) #2\n',
    '2020-07-03T08:47:38.395Z workers Started run worker instance (delayed) #0\n',
    '2020-07-03T08:47:38.512Z workers Started run worker instance (delayed) #3\n',
    '2020-07-03T08:47:38.512Z workers Started run worker instance (delayed) #4\n',
    '2020-07-03T08:47:38.513Z workers Started run worker instance (delayed) #5\n',
    '2020-07-03T08:47:39.933Z project Stopping process pool\n',
    '2020-07-03T08:47:39.966Z project Test run started; run priority: 3\n',
    '2020-07-03T08:47:40.027Z project Running all tests\n',
    '2020-07-03T08:47:40.487Z workers Starting test run, priority: 3\n',
    '2020-07-03T08:47:40.487Z workers Distributing tests between 6 workers\n',
    '2020-07-03T08:47:40.494Z workers Running tests in parallel\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #0, session #az4po]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #1, session #be690]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #2, session #p55x8]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #3, session #ofvm0]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #4, session #7go0c]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Starting sandbox [worker #5, session #apsoh]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #0, session #az4po]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #1, session #be690]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #2, session #p55x8]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #3, session #ofvm0]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #4, session #7go0c]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Preparing sandbox [worker #5, session #apsoh]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Prepared sandbox [worker #0, session #az4po]\n',
    '2020-07-03T08:47:40.495Z nodeRunner Prepared sandbox [worker #1, session #be690]\n',
    '2020-07-03T08:47:40.496Z nodeRunner Prepared sandbox [worker #2, session #p55x8]\n',
    '2020-07-03T08:47:40.496Z nodeRunner Prepared sandbox [worker #3, session #ofvm0]\n',
    '2020-07-03T08:47:40.496Z nodeRunner Prepared sandbox [worker #4, session #7go0c]\n',
    '2020-07-03T08:47:40.496Z nodeRunner Prepared sandbox [worker #5, session #apsoh]\n',
    '2020-07-03T08:47:40.496Z workers [worker #0, session #az4po] Running tests in sandbox\n',
    '2020-07-03T08:47:40.548Z workers [worker #1, session #be690] Running tests in sandbox\n',
    '2020-07-03T08:47:40.599Z workers [worker #2, session #p55x8] Running tests in sandbox\n',
    '2020-07-03T08:47:40.641Z workers [worker #3, session #ofvm0] Running tests in sandbox\n',
    '2020-07-03T08:47:40.684Z workers [worker #4, session #7go0c] Running tests in sandbox\n',
    '2020-07-03T08:47:40.725Z workers [worker #5, session #apsoh] Running tests in sandbox\n',
    '2020-07-03T08:48:01.429Z fs File deleted: babel.config.js\n',
    '2020-07-03T08:48:01.562Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2020-07-03T08:48:11.293Z fs File changed: app/javascript/packs/player/slide/row_question/__snapshots__/reducer.test.ts.snap\n',
    '2020-07-03T08:48:20.324Z workers [be690] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:20.452Z workers [ofvm0] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:20.593Z workers [p55x8] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:20.699Z workers [be690] Test executed: flow\n',
    '2020-07-03T08:48:20.794Z workers [p55x8] Test executed: reset\n',
    '2020-07-03T08:48:20.886Z workers [be690] Test executed: clickedAddTrack\n',
    '2020-07-03T08:48:20.969Z workers [ofvm0] Test executed: save one row\n',
    '2020-07-03T08:48:21.061Z workers [p55x8] Test executed: reset when loaded 3 first tracks\n',
    '2020-07-03T08:48:21.174Z workers [be690] Test executed: clickedReplaceTrack\n',
    '2020-07-03T08:48:21.384Z workers [p55x8] Test executed: reset to init composition\n',
    '2020-07-03T08:48:21.549Z workers [be690] Test executed: clickedRemoveTrack\n',
    '2020-07-03T08:48:21.739Z workers [ofvm0] Test executed: save two rows\n',
    '2020-07-03T08:48:21.967Z workers [be690] Test executed: changeVolume\n',
    '2020-07-03T08:48:22.121Z workers [ofvm0] Test executed: snapshot to prevent changes\n',
    '2020-07-03T08:48:22.311Z workers [be690] Test executed: changeGlobalVolume\n',
    '2020-07-03T08:48:22.598Z workers [be690] Test executed: clickedChangeOrder\n',
    '2020-07-03T08:48:22.789Z workers [apsoh] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:22.896Z workers [be690] Test executed: clickedAddPattern\n',
    '2020-07-03T08:48:23.083Z workers [ofvm0] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:23.225Z workers [apsoh] Test executed: should show menu when where are more head subject\n',
    '2020-07-03T08:48:23.329Z workers [be690] Test executed: clickedAddNewPattern\n',
    '2020-07-03T08:48:23.444Z workers [ofvm0] Test executed: shouldShowSaveLogin\n',
    '2020-07-03T08:48:23.510Z workers [apsoh] Test executed: should NOT show menu when where are more head subject when entering by teacher page\n',
    '2020-07-03T08:48:23.610Z workers [be690] Test executed: clickedRemovePattern\n',
    '2020-07-03T08:48:23.801Z workers [apsoh] Test executed: should NOT show menu when only one head item is available\n',
    '2020-07-03T08:48:23.916Z workers [be690] Test executed: selectedBpm\n',
    '2020-07-03T08:48:24.154Z workers [apsoh] Test executed: should give the current slide as url\n',
    '2020-07-03T08:48:24.257Z workers [be690] Test executed: clickedToggleNote true\n',
    '2020-07-03T08:48:24.508Z workers [apsoh] Test executed: should be able to navigate to an element by id\n',
    '2020-07-03T08:48:24.604Z workers [be690] Test executed: clickedToggleNote false\n',
    '2020-07-03T08:48:24.810Z workers [apsoh] Test executed: should show first slide of the sub subject\n',
    '2020-07-03T08:48:24.922Z workers [be690] Test executed: selectedSampleSet\n',
    '2020-07-03T08:48:25.135Z workers [apsoh] Test executed: should show menu again when navigating\n',
    '2020-07-03T08:48:25.264Z workers [be690] Test executed: clickedToggleSolo true\n',
    '2020-07-03T08:48:25.446Z workers [apsoh] Test executed: should be on the right page\n',
    '2020-07-03T08:48:25.528Z workers [be690] Test executed: clickedToggleSolo false\n',
    '2020-07-03T08:48:25.807Z workers [apsoh] Test executed: should navigate to the sub subject\n',
    '2020-07-03T08:48:25.976Z workers [be690] Test executed: confirmation approve\n',
    '2020-07-03T08:48:26.240Z workers [p55x8] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:26.380Z workers [be690] Test executed: confirmation deny\n',
    '2020-07-03T08:48:26.680Z workers [apsoh] Test executed: should show page 1 again\n',
    '2020-07-03T08:48:26.681Z workers [p55x8] Test executed: should show the menu when starting\n',
    '2020-07-03T08:48:27.015Z workers [apsoh] Test executed: should show the next sub subject\n',
    '2020-07-03T08:48:27.015Z workers [p55x8] Test executed: should close the menu when clicked the button\n',
    '2020-07-03T08:48:27.444Z workers [apsoh] Test executed: should navigate to the head subject\n',
    '2020-07-03T08:48:27.446Z workers [p55x8] Test executed: should open the menu again when clicked the button\n',
    '2020-07-03T08:48:27.771Z workers [apsoh] Test executed: should navigate to the first sub subject of the head subject\n',
    '2020-07-03T08:48:27.772Z workers [p55x8] Test executed: should show menu when next sub subject is clicked\n',
    '2020-07-03T08:48:28.559Z workers [apsoh] Test executed: should show page 1 again\n',
    '2020-07-03T08:48:29.676Z workers [p55x8] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:29.981Z workers [p55x8] Test executed: should have an emty first list in the begining\n',
    '2020-07-03T08:48:30.209Z workers [p55x8] Test executed: should select the item\n',
    '2020-07-03T08:48:30.369Z workers [apsoh] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:30.414Z workers [p55x8] Test executed: should remove item when in first row\n',
    '2020-07-03T08:48:30.505Z workers [apsoh] Test executed: Incorrect\n',
    '2020-07-03T08:48:30.628Z workers [be690] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:30.786Z workers [apsoh] Test executed: Correct\n',
    '2020-07-03T08:48:30.892Z workers [be690] Test executed: should mark at answer given when an question is clicked\n',
    '2020-07-03T08:48:31.029Z workers [p55x8] Test executed: should show answer when the answer are spread over the 2 rows\n',
    '2020-07-03T08:48:31.030Z workers [ofvm0] Run 4 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:48:31.078Z workers [be690] Test executed: should unmark an answer given when the same question is clicked again\n',
    '2020-07-03T08:48:31.292Z workers [be690] Test executed: should unmark an answer when clicking a new answer when multiple_choice = false\n',
    '2020-07-03T08:48:31.439Z workers [ofvm0] Sandbox is responsive, closing it\n',
    '2020-07-03T08:48:31.527Z workers [p55x8] Test executed: should return to normal play mode when clicking an item\n',
    '2020-07-03T08:48:31.696Z workers [be690] Test executed: should NOT unmark an answer when clicking a new answer when multiple_choice = true\n',
    '2020-07-03T08:48:32.557Z workers [be690] Test executed: should show an unchecked correct answer as unchecked\n',
    '2020-07-03T08:48:32.773Z workers [p55x8] Test executed: should reset when going to next page\n',
    '2020-07-03T08:48:33.035Z workers [be690] Test executed: should show answer when going to the next slide\n',
    '2020-07-03T08:48:33.464Z workers [p55x8] Test executed: should reset when going back\n',
    '2020-07-03T08:48:33.464Z workers [be690] Test executed: should NOT show answer when no answer is given\n',
    '2020-07-03T08:48:33.642Z workers [p55x8] Test executed: should reset when clicking again\n',
    '2020-07-03T08:48:33.911Z workers [p55x8] Test executed: should show ghosts\n',
    '2020-07-03T08:48:34.103Z workers [be690] Test executed: should reset when going to next page\n',
    '2020-07-03T08:48:34.323Z workers [p55x8] Test executed: should be able to toggle ghost answers\n',
    '2020-07-03T08:48:34.590Z workers [be690] Test executed: should reset when going back\n',
    '2020-07-03T08:48:34.813Z workers [p55x8] Test executed: should be marked correct\n',
    '2020-07-03T08:48:35.082Z workers [be690] Test executed: should show the correct answer\n',
    '2020-07-03T08:48:35.730Z workers [be690] Test executed: should show the incorrect answer\n',
    '2020-07-03T08:48:36.163Z workers Sandbox (active) [p55x8] error: 1 snapshot obsolete \n\trow question should shuffle answer 1\n',
    '2020-07-03T08:48:36.165Z workers [be690] Test executed: should reset results visible when switching subject\n',
    '2020-07-03T08:48:36.288Z workers [p55x8] Run 18 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:48:36.332Z workers [az4po] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:36.633Z workers [7go0c] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:36.633Z workers [az4po] Test executed: Should play next pattern\n',
    '2020-07-03T08:48:36.704Z workers [be690] Test executed: should reset results visible when clicking next subject\n',
    '2020-07-03T08:48:36.874Z workers [7go0c] Test executed: should filter out slides without content\n',
    '2020-07-03T08:48:36.875Z workers [az4po] Test executed: Should loop pattern\n',
    '2020-07-03T08:48:37.127Z workers [az4po] Test executed: Should NOT loop pattern\n',
    '2020-07-03T08:48:37.127Z workers [7go0c] Test executed: should show thumb when not loaded & is current\n',
    '2020-07-03T08:48:37.238Z workers [be690] Test executed: should reset results visible when switching head subject\n',
    '2020-07-03T08:48:37.402Z workers [az4po] Test executed: Should activate & deactive a note\n',
    '2020-07-03T08:48:37.403Z workers [7go0c] Test executed: should show thumb when loaded & current is NOT loaded\n',
    '2020-07-03T08:48:37.664Z workers [az4po] Test executed: Should add & remove patters\n',
    '2020-07-03T08:48:37.664Z workers [7go0c] Test executed: should show thumb when NOT loaded & current slide is loaded\n',
    '2020-07-03T08:48:37.891Z workers [7go0c] Test executed: should NOT show thumb when NOT loaded & current slide is NOT loaded yet\n',
    '2020-07-03T08:48:37.891Z workers [az4po] Test executed: Should select a pattern\n',
    '2020-07-03T08:48:38.567Z workers [az4po] Test executed: should have samples\n',
    '2020-07-03T08:48:38.568Z workers [7go0c] Test executed: should show thumb when loaded & current slide is NOT loaded yet\n',
    '2020-07-03T08:48:38.897Z workers [az4po] Test executed: solo\n',
    '2020-07-03T08:48:39.174Z workers [be690] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:39.367Z workers [az4po] Test executed: should change beats\n',
    '2020-07-03T08:48:39.623Z workers [apsoh] Run 16 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:48:39.623Z workers [be690] Test executed: getTileSize\n',
    '2020-07-03T08:48:39.704Z workers [az4po] Test executed: should replace track\n',
    '2020-07-03T08:48:40.008Z workers [az4po] Test executed: major\n',
    '2020-07-03T08:48:40.113Z workers [apsoh] Sandbox is responsive, closing it\n',
    '2020-07-03T08:48:40.312Z workers [7go0c] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:40.396Z workers [az4po] Test executed: minor\n',
    '2020-07-03T08:48:40.698Z workers [7go0c] Test executed: should show the back button when clicking an item\n',
    '2020-07-03T08:48:40.830Z workers [az4po] Test executed: blues\n',
    '2020-07-03T08:48:41.104Z workers [7go0c] Test executed: should NOT show the back button when no item is selected yet\n',
    '2020-07-03T08:48:41.280Z workers [az4po] Test executed: sampleForTrackID\n',
    '2020-07-03T08:48:41.501Z workers [7go0c] Test executed: should close menu after clicking an head subject\n',
    '2020-07-03T08:48:41.647Z workers [az4po] Test executed: should be able to order tracks\n',
    '2020-07-03T08:48:41.892Z workers [7go0c] Test executed: should hide menu when navigating to slide\n',
    '2020-07-03T08:48:42.007Z workers [az4po] Test executed: initComposer for ritme tool\n',
    '2020-07-03T08:48:42.558Z workers [az4po] Test executed: allTrackSamples\n',
    '2020-07-03T08:48:42.991Z workers [az4po] Test executed: should be active on different pattern\n',
    '2020-07-03T08:48:43.288Z workers [p55x8] Sandbox is not responsive, recycling worker instance\n',
    '2020-07-03T08:48:43.395Z workers [az4po] Test executed: order pattern\n',
    '2020-07-03T08:48:47.418Z fs File changed: app/javascript/packs/player/slide/row_question/__snapshots__/reducer.test.ts.snap\n',
    '2020-07-03T08:48:48.092Z fs No changes detected for app/javascript/packs/player/slide/row_question/__snapshots__/reducer.test.ts.snap\n',
    '2020-07-03T08:48:48.092Z extended-core File was not changed, but file markers may need to be synced\n',
    '2020-07-03T08:48:51.137Z workers [az4po] Loaded unknown number of test(s)\n',
    '2020-07-03T08:48:51.487Z workers [az4po] Test executed: should NOT show pagination when only one slide available\n',
    '2020-07-03T08:48:51.781Z workers [az4po] Test executed: expect to have 2 pages\n',
    '2020-07-03T08:48:51.969Z workers [az4po] Test executed: should return the correct slide\n',
    '2020-07-03T08:48:52.259Z workers [az4po] Test executed: should show next button\n',
    '2020-07-03T08:48:52.465Z workers [az4po] Test executed: should NOT show previous button\n',
    '2020-07-03T08:48:52.690Z workers [7go0c] Run 10 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:48:52.690Z workers [be690] Run 33 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:48:52.736Z workers [az4po] Test executed: should NOT show next sub subject on first slide\n',
    '2020-07-03T08:48:53.084Z workers [be690] Sandbox is responsive, closing it\n',
    '2020-07-03T08:48:53.111Z workers [7go0c] Sandbox is responsive, closing it\n',
    '2020-07-03T08:48:53.466Z workers [az4po] Test executed: should show next sub subject on last slide when question is completed\n',
    '2020-07-03T08:48:54.091Z workers [az4po] Test executed: should show lesson overview button when last slide on last subject\n',
    '2020-07-03T08:48:54.326Z workers [az4po] Test executed: should be able to navigate to a particular slide\n',
    '2020-07-03T08:48:54.510Z workers [az4po] Test executed: should be on the right page\n',
    '2020-07-03T08:48:54.843Z workers [az4po] Test executed: should show previous button\n',
    '2020-07-03T08:48:55.033Z workers [az4po] Test executed: should NOT show next button\n',
    '2020-07-03T08:48:55.240Z workers [az4po] Test executed: should show next sub subject on last slide\n',
    '2020-07-03T08:48:55.768Z workers [az4po] Test executed: should NOT show next sub subject on last slide\n',
    '2020-07-03T08:48:56.062Z workers [az4po] Test executed: should be on the right page\n',
    '2020-07-03T08:48:56.752Z workers [az4po] Test executed: should NOT go to next, but show the anwser\n',
    '2020-07-03T08:48:57.590Z workers [az4po] Test executed: should go to next, when anwser is shown\n',
    '2020-07-03T08:48:57.847Z workers [az4po] Test executed: should NOT go to the previous page when going back on answer streen\n',
    '2020-07-03T08:48:58.522Z workers [az4po] Test executed: should show pagination when last page question is answered\n',
    '2020-07-03T08:48:58.781Z workers [az4po] Test executed: should show pagination when only page question is answered\n',
    '2020-07-03T08:48:59.551Z workers [az4po] Test executed: should NOT show next button when last page and answer is visible\n',
    '2020-07-03T08:49:00.505Z workers [az4po] Test executed: should NOT go to the previous page when going back on answer streen\n',
    '2020-07-03T08:49:01.510Z workers [az4po] Test executed: should NOT show next button when last page and answer is visible\n',
    '2020-07-03T08:49:02.791Z workers [az4po] Loaded unknown number of test(s)\n',
    '2020-07-03T08:49:03.057Z workers [az4po] Test executed: should add the item to the right\n',
    '2020-07-03T08:49:03.326Z workers [az4po] Test executed: should remove item when its clicked again\n',
    '2020-07-03T08:49:03.515Z workers [az4po] Test executed: should reset item when its clicked again\n',
    '2020-07-03T08:49:03.782Z workers [az4po] Test executed: should remove item when in right row\n',
    '2020-07-03T08:49:04.982Z workers [az4po] Test executed: should reset when going to next page\n',
    '2020-07-03T08:49:05.688Z workers [az4po] Test executed: should reset when going back\n',
    '2020-07-03T08:49:06.365Z workers [az4po] Test executed: should return to normal play mode when clicking an item\n',
    '2020-07-03T08:49:06.830Z workers [az4po] Test executed: should be able to toggle ghost answers\n',
    '2020-07-03T08:49:07.301Z workers [az4po] Test executed: should order items\n',
    '2020-07-03T08:49:07.642Z workers [az4po] Test executed: should shuffle answer\n',
    '2020-07-03T08:49:08.258Z workers [az4po] Test executed: should also shuffle answer for preview below\n',
    '2020-07-03T08:49:23.301Z workers [az4po] Run 53 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:49:23.782Z workers [az4po] Sandbox is responsive, closing it\n',
    '2020-07-03T08:49:23.786Z workers Merging parallel test run results\n',
    '2020-07-03T08:49:23.804Z project Test run finished\n',
    '2020-07-03T08:49:23.806Z project Processed console.log entries\n',
    '2020-07-03T08:49:23.806Z project Processed loading sequences\n',
    '2020-07-03T08:49:23.810Z project Processed executed tests\n',
    '2020-07-03T08:49:23.974Z project Processed code coverage\n',
    '2020-07-03T08:49:24.425Z project Test run result processed and sent to IDE\n',
    '2020-07-03T08:49:24.520Z project Test run started; run priority: 2\n',
    '2020-07-03T08:49:24.631Z testTask Test files from affected: 0, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2020-07-03T08:49:25.012Z workers Starting test run, priority: 2\n',
    '2020-07-03T08:49:25.012Z nodeRunner Starting sandbox [worker #0, session #6jn0o]\n',
    '2020-07-03T08:49:25.013Z nodeRunner Preparing sandbox [worker #0, session #6jn0o]\n',
    '2020-07-03T08:49:25.013Z nodeRunner Prepared sandbox [worker #0, session #6jn0o]\n',
    '2020-07-03T08:49:25.013Z workers [worker #0, session #6jn0o] Running tests in sandbox\n',
    '2020-07-03T08:49:29.863Z fs File changed: app/javascript/packs/player/slide/row_question/__snapshots__/reducer.test.ts.snap\n',
    '2020-07-03T08:49:30.420Z fs No changes detected for app/javascript/packs/player/slide/row_question/__snapshots__/reducer.test.ts.snap\n',
    '2020-07-03T08:49:30.420Z extended-core File was not changed, but file markers may need to be synced\n',
    '2020-07-03T08:49:31.286Z workers [6jn0o] Loaded unknown number of test(s)\n',
    '2020-07-03T08:49:31.696Z workers [6jn0o] Test executed: should have an emty first list in the begining\n',
    '2020-07-03T08:49:32.087Z workers [6jn0o] Test executed: should select the item\n',
    '2020-07-03T08:49:32.561Z workers [6jn0o] Test executed: should remove item when in first row\n',
    '2020-07-03T08:49:34.077Z workers [6jn0o] Test executed: should show answer when the answer are spread over the 2 rows\n',
    '2020-07-03T08:49:35.382Z workers [6jn0o] Test executed: should return to normal play mode when clicking an item\n',
    '2020-07-03T08:49:37.404Z workers [6jn0o] Test executed: should reset when going to next page\n',
    '2020-07-03T08:49:38.917Z workers [6jn0o] Test executed: should reset when going back\n',
    '2020-07-03T08:49:39.404Z workers [6jn0o] Test executed: should reset when clicking again\n',
    '2020-07-03T08:49:39.947Z workers [6jn0o] Test executed: should show ghosts\n',
    '2020-07-03T08:49:40.817Z workers [6jn0o] Test executed: should be able to toggle ghost answers\n',
    '2020-07-03T08:49:41.846Z workers [6jn0o] Test executed: should be marked correct\n',
    '2020-07-03T08:49:44.313Z workers Sandbox (active) [6jn0o] error: 1 snapshot obsolete \n\trow question should shuffle answer 1\n',
    '2020-07-03T08:49:44.413Z workers [6jn0o] Run 11 test(s), skipped 0 test(s)\n',
    '2020-07-03T08:49:51.448Z workers [6jn0o] Sandbox is not responsive, recycling worker instance\n',
    '2020-07-03T08:49:51.451Z project Test run finished\n',
    '2020-07-03T08:49:51.456Z project Processed console.log entries\n',
    '2020-07-03T08:49:51.456Z project Processed loading sequences\n',
    '2020-07-03T08:49:51.456Z project Processed executed tests\n',
    '2020-07-03T08:49:51.457Z project Processed code coverage\n',
    '2020-07-03T08:49:51.467Z project Test run result processed and sent to IDE\n'
  ]
}
@ArtemGovorov
Copy link
Member

ArtemGovorov commented Jul 3, 2020

Thanks for providing the diagnostics report. There's one thing in there that can indicate the reason of the slowness. According to the report:

fs: { numberOfFiles: 30985 },

Wallaby is watching almost 31k files in your project, it is not a typical number of source files and may cause some slowness. That's after excluding node_modules and few other standard folders, like coverage.

Maybe you have recently introduced some folders with many files in your project's root? If it is the case it will certainly help if you exclude those folders by adding the folders that are not your tests or JavaScript code into Jest's watchPathIgnorePatterns setting. The best way may be to inspect your project's folders and find where are the 31 thousands of files are located.

@stijnvanderlaan
Copy link
Author

Thanks, that seems to speed it up alot! Doesn't folders starting with a dot be excluded by default?

@ArtemGovorov
Copy link
Member

Doesn't folders starting with a dot be excluded by default?

Not in Jest AFAIK.

What was the folder's name? Is it specific to your project, or some generic name that we can add as a default to be ignored perhaps?

@stijnvanderlaan
Copy link
Author

stijnvanderlaan commented Jul 3, 2020

Not in Jest AFAIK.

https://jestjs.io/docs/en/configuration#watchpathignorepatterns-arraystring

Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begins with a dot (.).

The name of the directory is tmp and .next in another project.

@ArtemGovorov
Copy link
Member

Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begins with a dot (.).

Oh, ok, thanks for pointing it out. We don't follow the same rule in Wallaby for Jest integration, but I guess we should.

@ArtemGovorov
Copy link
Member

We'll implement the ignoring rule the same way as in Jest and will release it in one the next versions.

@stijnvanderlaan
Copy link
Author

Thank you Artem.

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

2 participants