wallabyjs / public

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

Wallaby doesn't pick up source files correctly #2930

Closed jethas-bennettjones closed 2 years ago

jethas-bennettjones commented 2 years ago

Issue description or question

I am unable to see coverage for my source files when either in the editor or using the testapp URL. When I view the information in the testapp, I can see the test runs and failures, but when I click on the Files tab, it doesn't show any of my source code. I have tried to override the automatic configuration, but when I use that file the source files show up but the tests won't run properly.

Here is my wallaby.js file:

module.exports = function (wallaby) {
  return {
    autoDetect: true,
    files: ['src/**/*.ts'],
  };
};

Wallaby diagnostics report

{
  editorVersion: '1.64.1',
  pluginVersion: '1.0.326',
  editorType: 'VSCode',
  osVersion: 'win32 10.0.19044',
  nodeVersion: 'v14.18.1',
  coreVersion: '1.0.1224',
  checksum: 'YzFlNjYzMzg4ZDgyN2NlOGI1OTVjMDEwY2M2ODFkNmMsMTY3NTM4MjQwMDAwMCww',
  config: {
    diagnostics: {
      angular: {
        workspace: {
          '$schema': './node_modules/@angular/cli/lib/config/schema.json',
          version: 1,
          newProjectRoot: 'projects',
          projects: {
            blogs: {
              root: '',
              sourceRoot: 'src',
              projectType: 'application',
              architect: {
                build: {
                  builder: '@angular-devkit/build-angular:browser',
                  options: {
                    outputPath: 'dist',
                    index: 'src/index.html',
                    main: 'src/main.ts',
                    progress: true,
                    tsConfig: 'src/tsconfig.app.json',
                    polyfills: 'src/polyfills.ts',
                    assets: [
                      'src/assets',
                      { glob: '**/*', input: './node_modules/tinymce', output: '/tinymce/' },
                      { glob: 'bennettjones.css', input: './node_modules/@bennettjones/ui/dist/css', output: '/skins' },
                      { glob: 'email.css', input: './node_modules/@bennettjones/ui/dist/css', output: './skins' }
                    ],
                    styles: [ 'src/styles.scss' ],
                    scripts: [],
                    vendorChunk: true,
                    extractLicenses: false,
                    buildOptimizer: false,
                    sourceMap: true,
                    optimization: false,
                    namedChunks: true
                  },
                  configurations: {
                    dev: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      optimization: true,
                      outputHashing: 'all',
                      namedChunks: false,
                      extractLicenses: true,
                      vendorChunk: false,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.dev.ts' } ]
                    },
                    test: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      optimization: true,
                      outputHashing: 'all',
                      sourceMap: false,
                      namedChunks: false,
                      extractLicenses: true,
                      vendorChunk: false,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.test.ts' } ]
                    },
                    production: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      optimization: true,
                      outputHashing: 'all',
                      sourceMap: false,
                      namedChunks: false,
                      extractLicenses: true,
                      vendorChunk: false,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.prod.ts' } ]
                    }
                  },
                  defaultConfiguration: ''
                },
                serve: {
                  builder: '@angular-devkit/build-angular:dev-server',
                  options: { browserTarget: 'blogs:build' },
                  configurations: { test: { browserTarget: 'blogs:build:test' }, production: { browserTarget: 'blogs:build:production' } }
                },
                'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'blogs:build' } },
                test: { builder: '@angular-builders/jest:run', options: { tsConfig: 'src/tsconfig.spec.json' } },
                lint: { builder: '@angular-eslint/builder:lint', options: { lintFilePatterns: [ 'src/**/*.ts', 'src/**/*.html' ] } },
                'cypress-run': { builder: '@cypress/schematic:cypress', options: { devServerTarget: 'blogs:serve' }, configurations: { production: { devServerTarget: 'blogs:serve:production' } } },
                'cypress-open': { builder: '@cypress/schematic:cypress', options: { watch: true, headless: false } },
                e2e: {
                  builder: '@cypress/schematic:cypress',
                  options: { devServerTarget: 'blogs:serve', watch: true, headless: false },
                  configurations: { production: { devServerTarget: 'blogs:serve:production' } }
                }
              }
            }
          },
          defaultProject: 'blogs',
          schematics: { '@schematics/angular:component': { prefix: 'app', style: 'scss' }, '@schematics/angular:directive': { prefix: 'app' }, '@ngneat/spectator:spectator-component': { jest: true } },
          cli: { defaultCollection: '@angular-eslint/schematics' }
        }
      },
      jest: {
        config: {
          configs: [
            {
              automock: false,
              cache: true,
              cacheDirectory: 'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '\\\\node_modules\\\\' ],
              cwd: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp',
              dependencyExtractor: undefined,
              detectLeaks: false,
              detectOpenHandles: false,
              displayName: undefined,
              errorOnDeprecated: false,
              extensionsToTreatAsEsm: [],
              extraGlobals: [],
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: { 'ts-jest': { tsconfig: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\tsconfig.spec.json', stringifyContentPathRegex: '\\.html$' } },
              haste: { computeSha1: false, enableSymlinks: false, forceNodeFilesystemAPI: false, throwOnModuleCollision: false },
              injectGlobals: true,
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'ts', 'html', 'js', 'json', 'mjs' ],
              moduleLoader: undefined,
              moduleNameMapper: [
                [ '\\.(jpg|jpeg|png)$', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\@angular-builders\\jest\\dist\\jest-config/mock-module.js' ],
                [ 'src/(.*)', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\$1' ]
              ],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: '5639eb0427d8b2004ed125f28aaf1a57',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\resolvers\\ng-jest-resolver.js',
              restoreMocks: false,
              rootDir: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src',
              roots: [ 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src' ],
              runner: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest\\node_modules\\jest-runner\\build\\index.js',
              setupFiles: [],
              setupFilesAfterEnv: [
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\@angular-builders\\jest\\dist\\jest-config\\setup.js',
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\setup-jest.ts',
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\setup-jest.ts'
              ],
              skipFilter: false,
              skipNodeResolution: undefined,
              slowTestThreshold: 5,
              snapshotFormat: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\html-comment.js',
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\ng-snapshot.js',
                'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\no-ng-attributes.js'
              ],
              testEnvironment: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-environment-jsdom\\build\\index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ 'E:/dev/code/blogs/BennettJones.Blogs.Api/ClientApp/**/*(*.)@(spec|test).[tj]s?(x)' ],
              testPathIgnorePatterns: [ '\\\\node_modules\\\\', 'E:\\\\dev\\\\code\\\\blogs\\\\BennettJones.Blogs.Api\\\\ClientApp\\\\src\\\\environments\\\\' ],
              testRegex: [],
              testRunner: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-circus\\runner.js',
              testURL: 'https://github.com/just-jeb/angular-builders',
              timers: 'real',
              transform: [ [ '^.+\\.(ts|js|mjs|html|svg)$', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\index.js', {} ] ],
              transformIgnorePatterns: [ 'node_modules\\\\(?!@ephox|@angular|.*\\.mjs$)' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: true,
            collectCoverageFrom: [ 'app/**/*.{ts,html}', '!app/api/**' ],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\coverage',
            coverageProvider: 'babel',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: undefined,
            detectLeaks: false,
            detectOpenHandles: false,
            errorOnDeprecated: false,
            expand: false,
            filter: undefined,
            findRelatedTests: false,
            forceExit: false,
            globalSetup: undefined,
            globalTeardown: undefined,
            json: false,
            lastCommit: false,
            listTests: false,
            logHeapUsage: false,
            maxConcurrency: 5,
            maxWorkers: 3,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: false,
            onlyFailures: false,
            outputFile: undefined,
            passWithNoTests: false,
            projects: [],
            replname: undefined,
            reporters: undefined,
            rootDir: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            snapshotFormat: undefined,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: undefined,
            testSequencer: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest\\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: [ 'src' ],
            watchPathIgnorePatterns: [
              '\\\\node_modules\\\\',
              '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
              'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
              '\\.\\\\src\\\\environments\\\\',
              '\\.\\src\\coverage'
            ],
            testPathIgnorePatterns: [
              '\\\\node_modules\\\\',
              '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
              'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
              '\\.\\\\src\\\\environments\\\\',
              '\\.\\src\\coverage'
            ],
            testMatch: [ '**/*(*.)@(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: [ 'app/**/*.{ts,html}', '!app/api/**' ],
    filesWithNoCoverageCalculated: [],
    globalSetup: false,
    micromatch: true,
    customJestConfig: {
      configs: [
        {
          automock: false,
          cache: true,
          cacheDirectory: 'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
          clearMocks: false,
          coveragePathIgnorePatterns: [ '\\\\node_modules\\\\' ],
          cwd: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp',
          dependencyExtractor: undefined,
          detectLeaks: false,
          detectOpenHandles: false,
          displayName: undefined,
          errorOnDeprecated: false,
          extensionsToTreatAsEsm: [],
          extraGlobals: [],
          filter: undefined,
          forceCoverageMatch: [],
          globalSetup: undefined,
          globalTeardown: undefined,
          globals: { 'ts-jest': { tsconfig: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\tsconfig.spec.json', stringifyContentPathRegex: '\\.html$' } },
          haste: { computeSha1: false, enableSymlinks: false, forceNodeFilesystemAPI: false, throwOnModuleCollision: false },
          injectGlobals: true,
          moduleDirectories: [ 'node_modules' ],
          moduleFileExtensions: [ 'ts', 'html', 'js', 'json', 'mjs' ],
          moduleLoader: undefined,
          moduleNameMapper: [
            [ '\\.(jpg|jpeg|png)$', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\@angular-builders\\jest\\dist\\jest-config/mock-module.js' ],
            [ 'src/(.*)', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\$1' ]
          ],
          modulePathIgnorePatterns: [],
          modulePaths: undefined,
          name: '5639eb0427d8b2004ed125f28aaf1a57',
          prettierPath: 'prettier',
          resetMocks: false,
          resetModules: false,
          resolver: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\resolvers\\ng-jest-resolver.js',
          restoreMocks: false,
          rootDir: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src',
          roots: [ 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src' ],
          runner: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest\\node_modules\\jest-runner\\build\\index.js',
          setupFiles: [],
          setupFilesAfterEnv: [
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\@angular-builders\\jest\\dist\\jest-config\\setup.js',
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\setup-jest.ts',
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\setup-jest.ts'
          ],
          skipFilter: false,
          skipNodeResolution: undefined,
          slowTestThreshold: 5,
          snapshotFormat: undefined,
          snapshotResolver: undefined,
          snapshotSerializers: [
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\html-comment.js',
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\ng-snapshot.js',
            'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\serializers\\no-ng-attributes.js'
          ],
          testEnvironment: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-environment-jsdom\\build\\index.js',
          testEnvironmentOptions: {},
          testLocationInResults: false,
          testMatch: [ 'E:/dev/code/blogs/BennettJones.Blogs.Api/ClientApp/**/*(*.)@(spec|test).[tj]s?(x)' ],
          testPathIgnorePatterns: [ '\\\\node_modules\\\\', 'E:\\\\dev\\\\code\\\\blogs\\\\BennettJones.Blogs.Api\\\\ClientApp\\\\src\\\\environments\\\\' ],
          testRegex: [],
          testRunner: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-circus\\runner.js',
          testURL: 'https://github.com/just-jeb/angular-builders',
          timers: 'real',
          transform: [ [ '^.+\\.(ts|js|mjs|html|svg)$', 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest-preset-angular\\build\\index.js', {} ] ],
          transformIgnorePatterns: [ 'node_modules\\\\(?!@ephox|@angular|.*\\.mjs$)' ],
          unmockedModulePathPatterns: undefined,
          watchPathIgnorePatterns: []
        }
      ],
      globalConfig: {
        bail: 0,
        changedFilesWithAncestor: false,
        changedSince: undefined,
        collectCoverage: true,
        collectCoverageFrom: [ 'app/**/*.{ts,html}', '!app/api/**' ],
        collectCoverageOnlyFrom: undefined,
        coverageDirectory: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src\\coverage',
        coverageProvider: 'babel',
        coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
        coverageThreshold: undefined,
        detectLeaks: false,
        detectOpenHandles: false,
        errorOnDeprecated: false,
        expand: false,
        filter: undefined,
        findRelatedTests: false,
        forceExit: false,
        globalSetup: undefined,
        globalTeardown: undefined,
        json: false,
        lastCommit: false,
        listTests: false,
        logHeapUsage: false,
        maxConcurrency: 5,
        maxWorkers: 3,
        noSCM: undefined,
        noStackTrace: false,
        nonFlagArgs: undefined,
        notify: false,
        notifyMode: 'failure-change',
        onlyChanged: false,
        onlyFailures: false,
        outputFile: undefined,
        passWithNoTests: false,
        projects: [],
        replname: undefined,
        reporters: undefined,
        rootDir: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\src',
        runTestsByPath: false,
        silent: undefined,
        skipFilter: false,
        snapshotFormat: undefined,
        testFailureExitCode: 1,
        testNamePattern: undefined,
        testPathPattern: '',
        testResultsProcessor: undefined,
        testSequencer: 'E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\node_modules\\jest\\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: [ 'src' ],
        watchPathIgnorePatterns: [
          '\\\\node_modules\\\\',
          '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
          'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
          '\\.\\\\src\\\\environments\\\\',
          '\\.\\src\\coverage'
        ],
        testPathIgnorePatterns: [
          '\\\\node_modules\\\\',
          '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
          'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest',
          '\\.\\\\src\\\\environments\\\\',
          '\\.\\src\\coverage'
        ],
        testMatch: [ '**/*(*.)@(spec|test).[tj]s?(x)' ],
        testRegex: []
      }
    },
    files: [
      { pattern: '\\\\node_modules\\\\', regexp: /\\node_modules\\/, ignore: true, trigger: true, load: true },
      {
        pattern: '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
        regexp: /\.\\dist\\|\.\\build\\|\.\\coverage\\|\.\\git\\|\\\..+\\/,
        ignore: true,
        trigger: true,
        load: true
      },
      { pattern: 'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest', regexp: /<homeDir>\AppData\Local\Temp\jest/, ignore: true, trigger: true, load: true },
      { pattern: '\\.\\\\src\\\\environments\\\\', regexp: /\.\\src\\environments\\/, ignore: true, trigger: true, load: true },
      { pattern: '\\.\\src\\coverage', regexp: /\.\src\coverage/, ignore: true, trigger: true, load: true },
      { pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: 'src/**', ignore: false, trigger: true, load: true, order: 2 },
      { pattern: 'src/**/*(*.)@(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\\\\|\\.\\\\git\\\\|\\\\\\..+\\\\',
        regexp: /\.\\dist\\|\.\\build\\|\.\\coverage\\|\.\\git\\|\\\..+\\/,
        ignore: true,
        trigger: true,
        load: true,
        test: true
      },
      { pattern: 'C:\\Users\\DEVSJ\\AppData\\Local\\Temp\\jest', regexp: /<homeDir>\AppData\Local\Temp\jest/, ignore: true, trigger: true, load: true, test: true },
      { pattern: '\\.\\\\src\\\\environments\\\\', regexp: /\.\\src\\environments\\/, ignore: true, trigger: true, load: true, test: true },
      { pattern: '\\.\\src\\coverage', regexp: /\.\src\coverage/, ignore: true, trigger: true, load: true, test: true },
      { pattern: 'src/**/*(*.)@(spec|test).[tj]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 3 }
    ],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    addModifiedTestFileToExclusiveTestRun: true,
    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,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    env: { type: 'node', params: {}, runner: 'C:\\Program Files\\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#-29619565'
  },
  packageJSON: {
    dependencies: {
      '@angular-devkit/core': '^13.2.3',
      '@angular/animations': '^13.2.2',
      '@angular/cdk': '^13.2.2',
      '@angular/common': '^13.2.2',
      '@angular/compiler': '^13.2.2',
      '@angular/core': '^13.2.2',
      '@angular/forms': '^13.2.2',
      '@angular/platform-browser': '^13.2.2',
      '@angular/platform-browser-dynamic': '^13.2.2',
      '@angular/router': '^13.2.2',
      '@bennettjones/components': '^13.2.7',
      '@bennettjones/ui': '^1.2.30',
      '@fortawesome/angular-fontawesome': '^0.10.1',
      '@fortawesome/fontawesome-svg-core': '~1.2.36',
      '@fortawesome/free-solid-svg-icons': '^6.0.0',
      '@fortawesome/pro-duotone-svg-icons': '^5.15.4',
      '@fortawesome/pro-light-svg-icons': '^5.15.4',
      '@fortawesome/pro-regular-svg-icons': '^5.15.4',
      '@fortawesome/pro-solid-svg-icons': '^5.15.4',
      '@ng-select/ng-select': '^8.1.1',
      '@ngneat/spectator': '^10.0.0',
      '@nth-cloud/ng-toggle': '^8.0.2',
      '@schematics/angular': '^13.2.3',
      'angular-file': '^3.6.0',
      'angular-upload': '^1.0.13',
      'core-js': '3.21.0',
      husky: '^7.0.4',
      'lint-staged': '^12.3.4',
      'ngx-bootstrap': '^7.1.2',
      'ngx-toaster': '^1.0.1',
      'ngx-toastr': '^14.2.1',
      rxjs: '^6.6.7',
      sweetalert2: '^11.4.0',
      tslib: '^2.3.1',
      uuid: '^8.3.2',
      'zone.js': '~0.11.4'
    },
    devDependencies: {
      '@angular-builders/jest': '13.0.3',
      '@angular-devkit/build-angular': '~13.2.3',
      '@angular-devkit/schematics': '^13.2.3',
      '@angular-eslint/builder': '13.1.0',
      '@angular-eslint/eslint-plugin': '13.1.0',
      '@angular-eslint/eslint-plugin-template': '13.1.0',
      '@angular-eslint/schematics': '13.1.0',
      '@angular-eslint/template-parser': '13.1.0',
      '@angular/cli': '^13.2.3',
      '@angular/compiler-cli': '^13.2.2',
      '@angular/language-service': '^13.2.2',
      '@types/jest': '27.4.0',
      '@types/node': '^17.0.18',
      '@typescript-eslint/eslint-plugin': '5.12.0',
      '@typescript-eslint/parser': '5.12.0',
      cypress: '9.4.1',
      eslint: '^8.9.0',
      'eslint-plugin-import': '2.25.4',
      'eslint-plugin-jsdoc': '37.9.1',
      'eslint-plugin-prefer-arrow': '1.2.3',
      jest: '27.5.1',
      'ng-swagger-gen': '^2.3.1',
      'ts-node': '~10.5.0',
      typescript: '~4.5.5',
      'yaml-lint': '^1.2.4'
    }
  },
  fs: { numberOfFiles: 409 },
  debug: [
    '2022-02-16T15:25:42.830Z angular/cli config Detected Angular CLI.\n',
    '2022-02-16T15:25:42.832Z angular/cli config Angular currentDirPath: "E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp", workspaceDirPath: "E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp"\n',
    '2022-02-16T15:25:44.669Z jest/config Detected Jest.\n',
    '2022-02-16T15:25:44.670Z jest/config Configured Jest.\n',
    '2022-02-16T15:25:44.672Z project Wallaby Node version: v14.18.1\n',
    '2022-02-16T15:25:44.672Z project Wallaby config: E:\\dev\\code\\blogs\\BennettJones.Blogs.Api\\ClientApp\\auto.detect\n',
    '2022-02-16T15:25:45.553Z project File cache: C:\\Users\\DEVSJ\\.vscode-server\\extensions\\wallabyjs.wallaby-vscode-1.0.326\\projects\\08ab5d3efd981203\n',
    '2022-02-16T15:25:45.897Z uiService Listening port 51235\n',
    '2022-02-16T15:25:46.016Z workers Parallelism for initial run: 2, for regular run: 2\n',
    '2022-02-16T15:25:46.016Z workers Starting run worker instance #0\n',
    '2022-02-16T15:25:46.017Z workers Starting run worker instance #1\n',
    '2022-02-16T15:25:46.019Z workers Web server is listening at 50840\n',
    '2022-02-16T15:25:46.052Z project Stopping process pool\n',
    '2022-02-16T15:25:46.052Z project File cache is up-to-date, starting full test run\n',
    '2022-02-16T15:25:46.056Z project Test run started; run priority: 3\n',
    '2022-02-16T15:25:46.062Z project Running all tests\n',
    '2022-02-16T15:25:46.076Z workers Starting test run, priority: 3\n',
    '2022-02-16T15:25:46.076Z workers Distributing tests between 2 workers\n',
    '2022-02-16T15:25:46.078Z workers Running tests in parallel\n',
    '2022-02-16T15:25:46.078Z nodeRunner Starting sandbox [worker #0, session #wad4o]\n',
    '2022-02-16T15:25:46.078Z nodeRunner Starting sandbox [worker #1, session #rw0vp]\n',
    '2022-02-16T15:25:46.079Z nodeRunner Preparing sandbox [worker #0, session #wad4o]\n',
    '2022-02-16T15:25:46.079Z nodeRunner Preparing sandbox [worker #1, session #rw0vp]\n',
    '2022-02-16T15:25:46.319Z workers Started run worker instance (delayed) #1\n',
    '2022-02-16T15:25:46.320Z nodeRunner Prepared sandbox [worker #1, session #rw0vp]\n',
    '2022-02-16T15:25:46.320Z workers [worker #1, session #rw0vp] Running tests in sandbox\n',
    '2022-02-16T15:25:46.340Z workers Started run worker instance (delayed) #0\n',
    '2022-02-16T15:25:46.340Z nodeRunner Prepared sandbox [worker #0, session #wad4o]\n',
    '2022-02-16T15:25:46.340Z workers [worker #0, session #wad4o] Running tests in sandbox\n',
    '2022-02-16T15:25:57.614Z uiService UI client connected\n',
    '2022-02-16T15:25:57.614Z uiService Outgoing message ui:handshake\n',
    '2022-02-16T15:26:00.702Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/app/app.router.spec.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-02-16T15:26:00.907Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-02-16T15:26:01.407Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/app/blog/archive/archive.component.spec.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-02-16T15:26:01.608Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-02-16T15:26:03.490Z uiService Incoming message ui:start\n',
    '2022-02-16T15:26:03.491Z uiService Outgoing message ui:summary\n',
    '2022-02-16T15:26:03.493Z uiService Outgoing message ui:files\n',
    '2022-02-16T15:26:03.524Z uiService Incoming message ui:codeRequested\n',
    '2022-02-16T15:26:07.189Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/app/blog/blog-routing.module.spec.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-02-16T15:26:07.403Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-02-16T15:26:07.653Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/app/blog/blog.module.spec.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-02-16T15:26:07.856Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-02-16T15:26:15.269Z workers Scheduling Jest Test Run (wad4o): 2022-02-16T15:25:47.218Z\n',
    '2022-02-16T15:26:20.397Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:22.264Z workers Scheduling Jest Test Run (rw0vp): 2022-02-16T15:25:47.241Z\n',
    '2022-02-16T15:26:23.381Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:25.483Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:25.746Z workers Some long running code has been detected: one of your files is taking more than 5000ms to execute.\n' +
      'Execution of the following files has started but has not finished:\n' +
      '- src/app/blogs/blogs.module.spec.ts\n' +
      'Try commenting out the test or excluding the test file from the `tests` list in your wallaby config,\n' +
      'and restarting wallaby to make sure that it is this test/file causing the issue and not something else.\n' +
      'Pinging test runner sandbox...\n',
    '2022-02-16T15:26:25.949Z workers The sandbox is not responsive. Check for possibly recently introduced infinite loops.\n',
    '2022-02-16T15:26:28.359Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.637Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.637Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.638Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.639Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.639Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.639Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.640Z workers [rw0vp] Test executed: pageSize has default value\n',
    '2022-02-16T15:26:28.640Z workers [rw0vp] Test executed: page has default value\n',
    '2022-02-16T15:26:28.641Z workers [rw0vp] Test executed: makes expected calls\n',
    '2022-02-16T15:26:28.642Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.643Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.644Z workers [rw0vp] Test executed: faChevronDoubleLeft has default value\n',
    '2022-02-16T15:26:28.645Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2022-02-16T15:26:28.647Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.648Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.649Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.651Z workers [rw0vp] Test executed: can load instance\n',
    '2022-02-16T15:26:28.652Z workers [rw0vp] Test executed: types has default value\n',
    '2022-02-16T15:26:28.653Z workers [rw0vp] Test executed: frequencies has default value\n',
    '2022-02-16T15:26:28.653Z workers [rw0vp] Test executed: timesOfDay has default value\n',
    '2022-02-16T15:26:28.654Z workers [rw0vp] Test executed: daysOfWeek has default value\n',
    '2022-02-16T15:26:28.655Z workers [rw0vp] Test executed: faEdit has default value\n',
    '2022-02-16T15:26:28.656Z workers [rw0vp] Test executed: faPlusCircle has default value\n',
    '2022-02-16T15:26:28.657Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.657Z workers [rw0vp] Test executed: should include the default blog id when adding the post\n',
    '2022-02-16T15:26:28.657Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2022-02-16T15:26:28.658Z workers [rw0vp] Test executed: should include any selected blogs when adding the post\n',
    '2022-02-16T15:26:28.658Z workers [rw0vp] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.659Z workers [rw0vp] Test executed: should create\n',
    '2022-02-16T15:26:28.664Z workers [rw0vp] Run 20 test(s), skipped 0 test(s)\n',
    '2022-02-16T15:26:28.664Z workers Jest Test Run Complete (rw0vp): 2022-02-16T15:26:28.622Z\n',
    '2022-02-16T15:26:28.665Z workers [rw0vp] Sandbox is responsive, closing it\n',
    '2022-02-16T15:26:28.831Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.831Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.833Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.833Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.833Z workers [wad4o] Test executed: pageSize has default value\n',
    '2022-02-16T15:26:28.834Z workers [wad4o] Test executed: pageNumber has default value\n',
    '2022-02-16T15:26:28.835Z workers [wad4o] Test executed: teamsUrl has default value\n',
    '2022-02-16T15:26:28.836Z workers [wad4o] Test executed: faExclamation has default value\n',
    '2022-02-16T15:26:28.836Z workers [wad4o] Test executed: makes expected calls\n',
    '2022-02-16T15:26:28.838Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.838Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.839Z workers [wad4o] Test executed: faCalendarAlt has default value\n',
    '2022-02-16T15:26:28.840Z workers [wad4o] Test executed: faCommentsAlt has default value\n',
    '2022-02-16T15:26:28.840Z workers [wad4o] Test executed: faTimes has default value\n',
    '2022-02-16T15:26:28.842Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.842Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.843Z workers [wad4o] Test executed: faSearch has default value\n',
    '2022-02-16T15:26:28.844Z workers [wad4o] Test executed: makes expected calls\n',
    '2022-02-16T15:26:28.846Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2022-02-16T15:26:28.848Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.850Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.850Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.851Z workers [wad4o] Test executed: can load instance\n',
    '2022-02-16T15:26:28.851Z workers [wad4o] Test executed: canDelete has default value\n',
    '2022-02-16T15:26:28.852Z workers [wad4o] Test executed: types has default value\n',
    '2022-02-16T15:26:28.852Z workers [wad4o] Test executed: timesOfDay has default value\n',
    '2022-02-16T15:26:28.852Z workers [wad4o] Test executed: daysOfWeek has default value\n',
    '2022-02-16T15:26:28.853Z workers [wad4o] Test executed: frequencies has default value\n',
    '2022-02-16T15:26:28.853Z workers [wad4o] Test executed: faTimes has default value\n',
    '2022-02-16T15:26:28.853Z workers [wad4o] Test executed: faSave has default value\n',
    '2022-02-16T15:26:28.854Z workers [wad4o] Test executed: errors has default value\n',
    '2022-02-16T15:26:28.854Z workers [wad4o] Test executed: makes expected calls\n',
    '2022-02-16T15:26:28.854Z workers [wad4o] Test executed: makes expected calls\n',
    '2022-02-16T15:26:28.855Z workers [wad4o] Loaded unknown number of test(s)\n',
    '2022-02-16T15:26:28.855Z workers [wad4o] Test executed: should create\n',
    '2022-02-16T15:26:28.856Z workers Sandbox is responsive. The issue may be asynchronous in nature (for example, a missing callback).\n',
    '2022-02-16T15:26:28.860Z workers [wad4o] Run 28 test(s), skipped 0 test(s)\n',
    '2022-02-16T15:26:28.861Z workers Jest Test Run Complete (wad4o): 2022-02-16T15:26:28.821Z\n',
    '2022-02-16T15:26:28.862Z workers [wad4o] Sandbox is responsive, closing it\n',
    '2022-02-16T15:26:28.863Z workers Merging parallel test run results\n',
    '2022-02-16T15:26:28.865Z project Test run finished\n',
    '2022-02-16T15:26:28.865Z project Processed console.log entries\n',
    '2022-02-16T15:26:28.867Z project Processed loading sequences\n',
    '2022-02-16T15:26:28.868Z project Processed executed tests\n',
    '2022-02-16T15:26:28.876Z project Processed code coverage\n',
    '2022-02-16T15:26:28.909Z project Test run result processed and sent to IDE\n',
    '2022-02-16T15:26:28.910Z uiService Outgoing message ui:summary\n'
  ]
}
ArtemGovorov commented 2 years ago

According to your diagnostics report, somewhere in your Jest config you have the following setting:

collectCoverageFrom: [ 'app/**/*.{ts,html}', '!app/api/**' ],

and because your root path seems to have src/ (rather than app/) folder, code coverage is not collected. Removing the setting or fixing to:

collectCoverageFrom: [ 'src/**/*.{ts,html}', '!src/**/api/**' ],

should help.