wallabyjs / public

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

Error: Cannot set base providers because it has already been called #2479

Closed felikf closed 4 years ago

felikf commented 4 years ago

Issue description or question

After starting Wallaby in Webstorm, I am getting an error:

Cannot set base providers because it has already been called

console.log: Jest:   ● Test suite failed to run

    Cannot set base providers because it has already been called
      at TestBedRender3.Object.<anonymous>.TestBedRender3.initTestEnvironment (../../packages/core/testing/src/r3_test_bed.ts:218:13)
      at Object.<anonymous> (node_modules/jest-preset-angular/setupJest.js:34:14)
      at Object.<anonymous> (node_modules/jest-preset-angular/index.js:1:45)
      at Object.<anonymous> (src/setupJest.ts:4:20)
          at Array.forEach (<anonymous>)

It worked a while ago and may be caused by some package (NPM) or wallaby version.

Jest itself works - it is started without reported error. I am using automatic configuration (no config file).

image image

Wallaby diagnostics report

{
  editorVersion: 'WebStorm 2020.1.3',
  pluginVersion: '1.0.184',
  editorType: 'IntelliJ',
  osVersion: 'win32 10.0.18363',
  nodeVersion: 'v12.11.0',
  coreVersion: '1.0.926',
  config: {
    diagnostics: {
      angular: {
        workspace: {
          '$schema': './node_modules/@angular/cli/lib/config/schema.json',
          version: 1,
          newProjectRoot: 'projects',
          projects: {
            dashboards: {
              root: '',
              sourceRoot: 'src',
              projectType: 'application',
              prefix: 'dbs',
              schematics: {},
              architect: {
                build: {
                  builder: '@angular-devkit/build-angular:browser',
                  options: {
                    aot: true,
                    outputPath: 'dist/dashboards',
                    index: 'src/index.html',
                    main: 'src/main.ts',
                    polyfills: 'src/polyfills.ts',
                    tsConfig: 'src/tsconfig.app.json',
                    assets: [ 'src/assets', 'src/favicon.ico', 'src/configuration', 'src/wrapper.html', 'src/wrapper.ico', 'src/version.json' ],
                    styles: [ 'src/assets/fonts/Roboto/roboto.css', 'src/assets/fonts/MaterialIcons/font.css', 'src/styles.scss' ],
                    stylePreprocessorOptions: { includePaths: [ 'src/assets/styles' ] },
                    scripts: []
                  },
                  configurations: {
                    production: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.release.ts' } ],
                      optimization: true,
                      outputHashing: 'all',
                      sourceMap: false,
                      extractCss: true,
                      namedChunks: false,
                      aot: true,
                      extractLicenses: true,
                      vendorChunk: false,
                      buildOptimizer: true
                    },
                    dev: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.deva.ts' } ],
                      optimization: false,
                      outputHashing: 'all',
                      sourceMap: true,
                      extractCss: true,
                      namedChunks: false,
                      aot: true,
                      extractLicenses: false,
                      vendorChunk: false,
                      buildOptimizer: false
                    }
                  }
                },
                serve: {
                  builder: '@angular-devkit/build-angular:dev-server',
                  options: { browserTarget: 'dashboards:build', sourceMap: { scripts: true, styles: true, vendor: true } },
                  configurations: { production: { browserTarget: 'dashboards:build:production' }, deva: { browserTarget: 'dashboards:build:deva' }, devc: { browserTarget: 'dashboards:build:devc' } }
                },
                'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'dashboards:build' } },
                test: { builder: '@angular-builders/jest:run', options: { 'no-cache': false, reporters: [ 'jest-junit' ] } },
                lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: [ 'src/tsconfig.app.json', 'src/tsconfig.spec.json' ], exclude: [ '**/node_modules/**' ] } }
              }
            },
            'dashboards-e2e': {
              root: 'e2e/',
              projectType: 'application',
              architect: {
                e2e: {
                  builder: '@angular-devkit/build-angular:protractor',
                  options: { protractorConfig: 'e2e/protractor.conf.js', devServerTarget: 'dashboards:serve' },
                  configurations: { production: { devServerTarget: 'dashboards:serve:production' } }
                },
                lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: 'e2e/tsconfig.e2e.json', exclude: [ '**/node_modules/**' ] } }
              }
            }
          },
          defaultProject: 'dashboards',
          schematics: { '@schematics/angular:component': { style: 'scss' } },
          cli: { analytics: false }
        }
      },
      jest: {
        config: {
          configs: [
            {
              automock: false,
              browser: false,
              cache: true,
              cacheDirectory: 'C:\\Users\\felix\\AppData\\Local\\Temp\\1\\jest',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '\\\\node_modules\\\\' ],
              cwd: 'C:\\Users\\felix\\work\\app\\dash',
              dependencyExtractor: null,
              detectLeaks: undefined,
              detectOpenHandles: undefined,
              displayName: undefined,
              errorOnDeprecated: false,
              extraGlobals: undefined,
              filter: null,
              forceCoverageMatch: [],
              globalSetup: null,
              globalTeardown: null,
              globals: {
                'ts-jest': {
                  stringifyContentPathRegex: '\\.html$',
                  astTransformers: [ 'jest-preset-angular/InlineHtmlStripStylesTransformer.js', 'jest-preset-angular/InlineHtmlStripStylesTransformer' ],
                  tsConfig: '<rootDir>/src/tsconfig.spec.json',
                  diagnostics: { warnOnly: true }
                }
              },
              haste: { computeSha1: false, providesModuleNodeModules: [], throwOnModuleCollision: false },
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'ts', 'html', 'js', 'json' ],
              moduleLoader: undefined,
              moduleNameMapper: [
                [ '\\.(jpg|jpeg|png)$', 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@angular-builders\\jest\\dist\\jest-config/mock-module.js' ],
                [ '@core/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\core\\$1' ],
                [ '@shared/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\modules\\shared\\$1' ],
                [ '@mocks/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\modules\\mocks\\$1' ],
                [ '@views/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\views\\$1' ],
                [ '@app/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\$1' ],
                [ '@env/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\environments\\$1' ],
                [ '^src/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\$1' ],
                [ '^app/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\$1' ],
                [ '^assets/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\assets\\$1' ],
                [ '^environments/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\environments\\$1' ]
              ],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: 'a670a7c724ccb4d10d531c06c962aa07',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: null,
              restoreMocks: false,
              rootDir: 'C:\\Users\\felix\\work\\app\\dash',
              roots: [ 'C:\\Users\\felix\\work\\app\\dash' ],
              runner: 'jest-runner',
              setupFiles: [],
              setupFilesAfterEnv: [
                'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@angular-builders\\jest\\dist\\jest-config\\setup.js',
                'C:\\Users\\felix\\work\\app\\dash\\src\\setupJest.ts'
              ],
              skipFilter: false,
              skipNodeResolution: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [
                'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-preset-angular\\AngularSnapshotSerializer.js',
                'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-preset-angular\\HTMLCommentSerializer.js'
              ],
              testEnvironment: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-environment-jsdom-thirteen\\build\\index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ 'C:/Users/felix/work/cps/dashboards/**/+(*.)+(spec|test).+(ts|js)?(x)' ],
              testPathIgnorePatterns: [ '\\\\node_modules\\\\' ],
              testRegex: [],
              testRunner: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest\\node_modules\\jest-jasmine2\\build\\index.js',
              testURL: 'https://github.com/@angular-cli-builders',
              timers: 'real',
              transform: [ [ '^.+\\.(ts|js|html)$', 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\ts-jest\\dist\\index.js' ] ],
              transformIgnorePatterns: [ 'node_modules\\\\(?!@ngrx|angular2-ui-switch|ng-dynamic)' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: null,
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: 'C:\\Users\\felix\\work\\app\\dash\\coverage',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: null,
            detectLeaks: undefined,
            detectOpenHandles: undefined,
            enabledTestsMap: undefined,
            errorOnDeprecated: false,
            expand: false,
            extraGlobals: undefined,
            filter: null,
            findRelatedTests: undefined,
            forceExit: undefined,
            globalSetup: null,
            globalTeardown: null,
            json: false,
            lastCommit: undefined,
            listTests: undefined,
            logHeapUsage: undefined,
            maxConcurrency: 5,
            maxWorkers: 7,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: undefined,
            onlyFailures: undefined,
            outputFile: undefined,
            passWithNoTests: undefined,
            projects: null,
            replname: undefined,
            reporters: undefined,
            rootDir: 'C:\\Users\\felix\\work\\app\\dash',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-teamcity-reporter\\index.js',
            testSequencer: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@jest\\test-sequencer\\build\\index.js',
            testTimeout: undefined,
            updateSnapshot: 'new',
            useStderr: false,
            verbose: null,
            watch: false,
            watchAll: undefined,
            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: [ '**/+(*.)+(spec|test).+(ts|js)?(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,
    customJestConfig: {
      configs: [
        {
          automock: false,
          browser: false,
          cache: true,
          cacheDirectory: 'C:\\Users\\felix\\AppData\\Local\\Temp\\1\\jest',
          clearMocks: false,
          coveragePathIgnorePatterns: [ '\\\\node_modules\\\\' ],
          cwd: 'C:\\Users\\felix\\work\\app\\dash',
          dependencyExtractor: null,
          detectLeaks: undefined,
          detectOpenHandles: undefined,
          displayName: undefined,
          errorOnDeprecated: false,
          extraGlobals: undefined,
          filter: null,
          forceCoverageMatch: [],
          globalSetup: null,
          globalTeardown: null,
          globals: {
            'ts-jest': {
              stringifyContentPathRegex: '\\.html$',
              astTransformers: [ 'jest-preset-angular/InlineHtmlStripStylesTransformer.js', 'jest-preset-angular/InlineHtmlStripStylesTransformer' ],
              tsConfig: '<rootDir>/src/tsconfig.spec.json',
              diagnostics: { warnOnly: true }
            }
          },
          haste: { computeSha1: false, providesModuleNodeModules: [], throwOnModuleCollision: false },
          moduleDirectories: [ 'node_modules' ],
          moduleFileExtensions: [ 'ts', 'html', 'js', 'json' ],
          moduleLoader: undefined,
          moduleNameMapper: [
            [ '\\.(jpg|jpeg|png)$', 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@angular-builders\\jest\\dist\\jest-config/mock-module.js' ],
            [ '@core/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\core\\$1' ],
            [ '@shared/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\modules\\shared\\$1' ],
            [ '@mocks/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\modules\\mocks\\$1' ],
            [ '@views/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\views\\$1' ],
            [ '@app/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\$1' ],
            [ '@env/(.*)', 'C:\\Users\\felix\\work\\app\\dash\\src\\environments\\$1' ],
            [ '^src/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\$1' ],
            [ '^app/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\app\\$1' ],
            [ '^assets/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\assets\\$1' ],
            [ '^environments/(.*)$', 'C:\\Users\\felix\\work\\app\\dash\\src\\environments\\$1' ]
          ],
          modulePathIgnorePatterns: [],
          modulePaths: undefined,
          name: 'a670a7c724ccb4d10d531c06c962aa07',
          prettierPath: 'prettier',
          resetMocks: false,
          resetModules: false,
          resolver: null,
          restoreMocks: false,
          rootDir: 'C:\\Users\\felix\\work\\app\\dash',
          roots: [ 'C:\\Users\\felix\\work\\app\\dash' ],
          runner: 'jest-runner',
          setupFiles: [],
          setupFilesAfterEnv: [
            'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@angular-builders\\jest\\dist\\jest-config\\setup.js',
            'C:\\Users\\felix\\work\\app\\dash\\src\\setupJest.ts'
          ],
          skipFilter: false,
          skipNodeResolution: undefined,
          snapshotResolver: undefined,
          snapshotSerializers: [
            'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-preset-angular\\AngularSnapshotSerializer.js',
            'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-preset-angular\\HTMLCommentSerializer.js'
          ],
          testEnvironment: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-environment-jsdom-thirteen\\build\\index.js',
          testEnvironmentOptions: {},
          testLocationInResults: false,
          testMatch: [ 'C:/Users/felix/work/cps/dashboards/**/+(*.)+(spec|test).+(ts|js)?(x)' ],
          testPathIgnorePatterns: [ '\\\\node_modules\\\\' ],
          testRegex: [],
          testRunner: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest\\node_modules\\jest-jasmine2\\build\\index.js',
          testURL: 'https://github.com/@angular-cli-builders',
          timers: 'real',
          transform: [ [ '^.+\\.(ts|js|html)$', 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\ts-jest\\dist\\index.js' ] ],
          transformIgnorePatterns: [ 'node_modules\\\\(?!@ngrx|angular2-ui-switch|ng-dynamic)' ],
          unmockedModulePathPatterns: undefined,
          watchPathIgnorePatterns: []
        }
      ],
      globalConfig: {
        bail: 0,
        changedFilesWithAncestor: false,
        changedSince: undefined,
        collectCoverage: false,
        collectCoverageFrom: null,
        collectCoverageOnlyFrom: undefined,
        coverageDirectory: 'C:\\Users\\felix\\work\\app\\dash\\coverage',
        coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
        coverageThreshold: null,
        detectLeaks: undefined,
        detectOpenHandles: undefined,
        enabledTestsMap: undefined,
        errorOnDeprecated: false,
        expand: false,
        extraGlobals: undefined,
        filter: null,
        findRelatedTests: undefined,
        forceExit: undefined,
        globalSetup: null,
        globalTeardown: null,
        json: false,
        lastCommit: undefined,
        listTests: undefined,
        logHeapUsage: undefined,
        maxConcurrency: 5,
        maxWorkers: 7,
        noSCM: undefined,
        noStackTrace: false,
        nonFlagArgs: undefined,
        notify: false,
        notifyMode: 'failure-change',
        onlyChanged: undefined,
        onlyFailures: undefined,
        outputFile: undefined,
        passWithNoTests: undefined,
        projects: null,
        replname: undefined,
        reporters: undefined,
        rootDir: 'C:\\Users\\felix\\work\\app\\dash',
        runTestsByPath: false,
        silent: undefined,
        skipFilter: false,
        testFailureExitCode: 1,
        testNamePattern: undefined,
        testPathPattern: '',
        testResultsProcessor: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\jest-teamcity-reporter\\index.js',
        testSequencer: 'C:\\Users\\felix\\work\\app\\dash\\node_modules\\@jest\\test-sequencer\\build\\index.js',
        testTimeout: undefined,
        updateSnapshot: 'new',
        useStderr: false,
        verbose: null,
        watch: false,
        watchAll: undefined,
        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: [ '**/+(*.)+(spec|test).+(ts|js)?(x)' ],
        testRegex: []
      }
    },
    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: '**/+(*.)+(spec|test).+(ts|js)?(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: '**/+(*.)+(spec|test).+(ts|js)?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 }
    ],
    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: 'C:\\Users\\felix\\App\\nodejs\\node.exe', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: 'auto.detect#589221215'
  },
  packageJSON: {
    dependencies: {
      '@angular/animations': '9.1.2',
      '@angular/cdk': '9.2.1',
      '@angular/common': '9.1.2',
      '@angular/compiler': '9.1.2',
      '@angular/core': '9.1.2',
      '@angular/flex-layout': '9.0.0-beta.29',
      '@angular/forms': '9.1.2',
      '@angular/material': '9.2.1',
      '@angular/material-moment-adapter': '9.2.1',
      '@angular/platform-browser': '9.1.2',
      '@angular/platform-browser-dynamic': '9.1.2',
      '@angular/router': '9.1.2',
      '@ngrx/effects': '9.1.0',
      '@ngrx/router-store': '9.1.0',
      '@ngrx/store': '9.1.0',
      '@ngrx/store-devtools': '9.1.0',
      '@ngx-translate/core': '11.0.1',
      '@ngx-translate/http-loader': '4.0.0',
      'core-js': '3.2.1',
      'error-stack-parser': '2.0.6',
      lodash: '4.17.15',
      moment: '2.24.0',
      'ngx-take-until-destroy': '5.4.0',
      rxjs: '6.5.4',
      'ts-md5': '1.2.7',
      tslib: '^1.10.0',
      'zone.js': '~0.10.2'
    },
    devDependencies: {
      '@angular-builders/jest': '8.3.2',
      '@angular-devkit/build-angular': '~0.901.1',
      '@angular/cli': '9.1.1',
      '@angular/compiler-cli': '9.1.2',
      '@angular/language-service': '9.1.2',
      '@fortawesome/fontawesome-free': '^5.13.0',
      '@ngrx/schematics': '9.1.0',
      '@types/jest': '23.3.14',
      '@types/lodash': '4.14.149',
      '@types/node': '^12.11.1',
      'browser-sync': '2.26.7',
      codelyzer: '^5.1.2',
      'commit-message-validator': '^0.1.11',
      husky: '^4.2.3',
      'istanbul-reports': '2.2.7',
      jest: '24.9.0',
      'jest-cli': '24.9.0',
      'jasmine-marbles': '0.4.1',
      'jest-preset-angular': '7.1.1',
      'jest-sonar-reporter': '2.0.0',
      'jest-teamcity-reporter': '0.9.0',
      'json-loader': '0.5.7',
      'ngx-wallaby-jest': '0.0.2',
      prettier: '1.18.2',
      protractor: '5.4.1',
      'rxjs-tslint-rules': '4.25.0',
      'ts-node': '7.0.1',
      tslint: '5.19.0',
      'tslint-eslint-rules': '5.4.0',
      'tslint-microsoft-contrib': '6.1.1',
      'tslint-teamcity-reporter': '3.2.2',
      typescript: '3.8.3',
      'wallaby-webpack': '3.9.15'
    }
  },
  fs: { numberOfFiles: 2018 },
  debug: [
    '2020-07-16T10:26:36.752Z angular/cli config Detected Angular CLI.\n',
    '2020-07-16T10:26:39.375Z jest/config Detected Jest.\n',
    '2020-07-16T10:26:39.375Z jest/config Configured Jest.\n',
    '2020-07-16T10:26:39.376Z project Wallaby Node version: v12.11.0\n',
    '2020-07-16T10:26:39.376Z project Wallaby config: C:\\Users\\felix\\work\\app\\dash\\auto.detect\n',
    '2020-07-16T10:26:43.445Z project File cache: C:\\Users\\felix\\AppData\\Local\\JetBrains\\WebStorm2020.1\\wallaby\\projects\\cdeeb719b91f8a51\n',
    '2020-07-16T10:26:43.550Z uiService Listening port 51235\n',
    '2020-07-16T10:26:43.720Z workers Parallelism for initial run: 6, for regular run: 3\n',
    '2020-07-16T10:26:43.720Z workers Starting run worker instance #0\n',
    '2020-07-16T10:26:43.721Z workers Starting run worker instance #1\n',
    '2020-07-16T10:26:43.721Z workers Starting run worker instance #2\n',
    '2020-07-16T10:26:43.721Z workers Starting run worker instance #3\n',
    '2020-07-16T10:26:43.721Z workers Starting run worker instance #4\n',
    '2020-07-16T10:26:43.721Z workers Starting run worker instance #5\n',
    '2020-07-16T10:26:43.740Z workers Web server is listening at 61321\n',
    '2020-07-16T10:26:43.979Z project Stopping process pool\n',
    '2020-07-16T10:26:43.979Z project File cache is up-to-date, starting full test run\n',
    '2020-07-16T10:26:43.983Z project Test run started; run priority: 3\n',
    '2020-07-16T10:26:44.020Z project Running all tests\n',
    '2020-07-16T10:26:44.093Z workers Starting test run, priority: 3\n',
    '2020-07-16T10:26:44.094Z workers Distributing tests between 6 workers\n',
    '2020-07-16T10:26:44.107Z workers Running tests in parallel\n',
    '2020-07-16T10:26:44.108Z nodeRunner Starting sandbox [worker #0, session #tqrax]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Starting sandbox [worker #1, session #2plsh]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Starting sandbox [worker #2, session #ioe03]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Starting sandbox [worker #3, session #mcct5]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Starting sandbox [worker #4, session #49f2n]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Starting sandbox [worker #5, session #p10jo]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #0, session #tqrax]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #1, session #2plsh]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #2, session #ioe03]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #3, session #mcct5]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #4, session #49f2n]\n',
    '2020-07-16T10:26:44.109Z nodeRunner Preparing sandbox [worker #5, session #p10jo]\n',
    '2020-07-16T10:26:44.430Z workers Started run worker instance (delayed) #0\n',
    '2020-07-16T10:26:44.431Z nodeRunner Prepared sandbox [worker #0, session #tqrax]\n',
    '2020-07-16T10:26:44.432Z workers [worker #0, session #tqrax] Running tests in sandbox\n',
    '2020-07-16T10:26:44.479Z workers Started run worker instance (delayed) #1\n',
    '2020-07-16T10:26:44.480Z nodeRunner Prepared sandbox [worker #1, session #2plsh]\n',
    '2020-07-16T10:26:44.480Z workers [worker #1, session #2plsh] Running tests in sandbox\n',
    '2020-07-16T10:26:44.581Z workers Started run worker instance (delayed) #2\n',
    '2020-07-16T10:26:44.581Z nodeRunner Prepared sandbox [worker #2, session #ioe03]\n',
    '2020-07-16T10:26:44.582Z workers [worker #2, session #ioe03] Running tests in sandbox\n',
    '2020-07-16T10:26:44.660Z workers Started run worker instance (delayed) #3\n',
    '2020-07-16T10:26:44.660Z nodeRunner Prepared sandbox [worker #3, session #mcct5]\n',
    '2020-07-16T10:26:44.661Z workers [worker #3, session #mcct5] Running tests in sandbox\n',
    '2020-07-16T10:26:44.717Z workers Started run worker instance (delayed) #4\n',
    '2020-07-16T10:26:44.717Z nodeRunner Prepared sandbox [worker #4, session #49f2n]\n',
    '2020-07-16T10:26:44.717Z workers [worker #4, session #49f2n] Running tests in sandbox\n',
    '2020-07-16T10:26:44.724Z workers Started run worker instance (delayed) #5\n',
    '2020-07-16T10:26:44.725Z nodeRunner Prepared sandbox [worker #5, session #p10jo]\n',
    '2020-07-16T10:26:44.725Z workers [worker #5, session #p10jo] Running tests in sandbox\n',
    '2020-07-16T10:27:16.011Z fs File changed in editor: src/app/views/transactions/account/services/account/payment-account.service.spec.ts\n',
    '2020-07-16T10:27:16.011Z extended-core New document or complex document change\n',
    '2020-07-16T10:27:16.013Z project Test run is not cancelled because cancel requester does not have enough priority to cancel the run\n',
    '2020-07-16T10:27:20.870Z fs File changed: src/app/views/transactions/account/services/account/payment-account.service.spec.ts\n',
    '2020-07-16T10:27:20.923Z fs No changes detected for src/app/views/transactions/account/services/account/payment-account.service.spec.ts\n',
    '2020-07-16T10:27:20.923Z extended-core File was not changed, but file markers may need to be synced\n',
    '2020-07-16T10:27:39.570Z workers Sandbox (active) [49f2n] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:39.588Z workers [49f2n] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:40.291Z workers [49f2n] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:40.404Z workers Sandbox (active) [ioe03] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:40.405Z workers [ioe03] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:40.520Z workers Sandbox (active) [tqrax] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:40.522Z workers [tqrax] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:40.642Z workers Sandbox (active) [mcct5] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:40.643Z workers [mcct5] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:40.649Z workers Sandbox (active) [p10jo] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:40.654Z workers [p10jo] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:40.754Z workers Sandbox (active) [2plsh] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:40.755Z workers [2plsh] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:41.259Z workers [ioe03] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.327Z workers [p10jo] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.330Z workers [mcct5] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.335Z workers [tqrax] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.344Z workers [2plsh] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.346Z workers Merging parallel test run results\n',
    '2020-07-16T10:27:41.349Z project Test run finished\n',
    '2020-07-16T10:27:41.351Z project Processed console.log entries\n',
    '2020-07-16T10:27:41.351Z project Processed loading sequences\n',
    '2020-07-16T10:27:41.352Z project Processed executed tests\n',
    '2020-07-16T10:27:41.381Z project Processed code coverage\n',
    '2020-07-16T10:27:41.408Z project Test run result processed and sent to IDE\n',
    '2020-07-16T10:27:41.458Z project Test run started; run priority: 2\n',
    '2020-07-16T10:27:41.460Z testTask Test files from affected: 1, from deleted or manually requested: 0, from recently changed: 0, from loaded by: 0, from failing: 0\n',
    '2020-07-16T10:27:41.516Z workers Starting test run, priority: 2\n',
    '2020-07-16T10:27:41.516Z nodeRunner Starting sandbox [worker #0, session #cfixs]\n',
    '2020-07-16T10:27:41.517Z nodeRunner Preparing sandbox [worker #0, session #cfixs]\n',
    '2020-07-16T10:27:41.517Z nodeRunner Prepared sandbox [worker #0, session #cfixs]\n',
    '2020-07-16T10:27:41.517Z workers [worker #0, session #cfixs] Running tests in sandbox\n',
    '2020-07-16T10:27:41.855Z workers Sandbox (active) [cfixs] error: Cannot set base providers because it has already been called\n',
    '2020-07-16T10:27:41.855Z workers [cfixs] Run 0 test(s), skipped 0 test(s)\n',
    '2020-07-16T10:27:41.857Z workers [cfixs] Sandbox is responsive, closing it\n',
    '2020-07-16T10:27:41.858Z project Test run finished\n',
    '2020-07-16T10:27:41.858Z project Processed console.log entries\n',
    '2020-07-16T10:27:41.858Z project Processed loading sequences\n',
    '2020-07-16T10:27:41.858Z project Processed executed tests\n',
    '2020-07-16T10:27:41.858Z project Processed code coverage\n',
    '2020-07-16T10:27:41.860Z project Test run result processed and sent to IDE\n'
  ]
}
felikf commented 4 years ago

Seems to be fixed by:

Index: package.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- package.json    (revision 0daabedd9fe478733d3bbdf008493efd364e7d6f)
+++ package.json    (date 1594897362115)
@@ -53,14 +53,14 @@
     "zone.js": "~0.10.2"
   },
   "devDependencies": {
-    "@angular-builders/jest": "8.3.2",
+    "@angular-builders/jest": "9.0.1",
     "@angular-devkit/build-angular": "~0.901.1",
     "@angular/cli": "9.1.1",
     "@angular/compiler-cli": "9.1.2",
     "@angular/language-service": "9.1.2",
     "@fortawesome/fontawesome-free": "^5.13.0",
     "@ngrx/schematics": "9.1.0",
-    "@types/jest": "23.3.14",
+    "@types/jest": "26.0.4",
     "@types/lodash": "4.14.149",
     "@types/node": "^12.11.1",
     "browser-sync": "2.26.7",
@@ -68,10 +68,10 @@
     "commit-message-validator": "^0.1.11",
     "husky": "^4.2.3",
     "istanbul-reports": "2.2.7",
-    "jest": "24.9.0",
-    "jest-cli": "24.9.0",
+    "jest": "26.1.0",
+    "jest-cli": "25.5.4",
     "jasmine-marbles": "0.4.1",
-    "jest-preset-angular": "7.1.1",
+    "jest-preset-angular": "8.2.1",
     "jest-sonar-reporter": "2.0.0",
     "jest-teamcity-reporter": "0.9.0",
     "json-loader": "0.5.7",
@@ -105,11 +105,9 @@
         "tsConfig": "<rootDir>/src/tsconfig.spec.json",
         "stringifyContentPathRegex": "\\.html$",
         "astTransformers": [
-          "jest-preset-angular/InlineHtmlStripStylesTransformer"
-        ],
-        "diagnostics": {
-          "warnOnly": true
-        }
+          "jest-preset-angular/build/InlineFilesTransformer",
+          "jest-preset-angular/build/StripStylesTransformer"
+        ]
       }
     },
     "moduleNameMapper": {
@@ -123,9 +121,6 @@
     "setupFilesAfterEnv": [
       "<rootDir>/src/setupJest.ts"
     ],
-    "testResultsProcessor": "jest-teamcity-reporter",
-    "transformIgnorePatterns": [
-      "node_modules/(?!@ngrx|angular2-ui-switch|ng-dynamic)"
-    ]
+    "testResultsProcessor": "jest-teamcity-reporter"
   }
 }
felikf commented 4 years ago

BTW do I need this dependency: "ngx-wallaby-jest": "0.0.2" ?

felikf commented 4 years ago

I have managed to make wallaby working, but instead of 1750 tests wallaby now sees only 1294 tests :(

Jest: image

Wallaby - with some error (Cannot set property '0' of undefined): image

Cau you please suggest any reason why wallaby do not see all tests?

smcenlly commented 4 years ago

You don't need either of these dependencies:

--

Could you please send us an updated Wallaby Diagnostics report? It will have different information in it since you fixed the jest/jest builder dependencies.

felikf commented 4 years ago

Report is here, can't fit comments:

You can't comment at this time — your comment is too long (maximum is 65536 characters).

felikf commented 4 years ago

Also by restarting the service I can see all tests passed, closing issue.