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

Code Coverage, green squares, etc only show in test file... #3464

Open
mmcgee-aya opened this issue Feb 11, 2025 · 4 comments
Open

Code Coverage, green squares, etc only show in test file... #3464

mmcgee-aya opened this issue Feb 11, 2025 · 4 comments

Comments

@mmcgee-aya
Copy link

**I am working for a company that has several angular projects. Wallaby works in some repos, the one I am assingned to currently does not. Wallaby does indeed show the test are passing or failing, but I can't see the green dots/square or code coverage in the source file (the class under test.).

Any help would be appreciate. I do NOT think I can give you access to repo. If I can I will strip it down to nothing and create a repo!**

{
  editorVersion: '1.97.0',
  pluginVersion: '1.0.421',
  editorType: 'VSCode',
  osVersion: 'win32 10.0.26100',
  nodeVersion: 'v20.18.0',
  coreVersion: '1.0.1702',
  pnp: '<not set>',
  pnpEsm: '<not set>',
  checksum: 'NzQ4YWRhNTczMTU4NjhjNGNmNTNlNzRhOGUwNjNjZDQsMTc2Njc5MzYwMDAwMCww',
  config: {
    tests: [ { pattern: 'src/**/*.spec.ts', ignore: false, trigger: true, load: true, test: true, order: 1 } ],
    hints: {
      ignoreCoverageForFile: '<auto-generated>',
      ignoreCoverage: '__REGEXP /ignore coverage|istanbul ignore|c8 ignore/',
      commentAutoLog: '?',
      testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
    },
    files: [ { pattern: 'src/app/shared/api/api.ts', ignore: true, trigger: true, load: true, file: true } ],
    compilerOptions: { types: [] },
    diagnostics: {
      angular: {
        workspace: {
          '$schema': './node_modules/@angular/cli/lib/config/schema.json',
          version: 1,
          newProjectRoot: 'projects',
          projects: {
            'CandidatePortal.Web': {
              projectType: 'application',
              schematics: {
                '@schematics/angular:component': { inlineTemplate: false, inlineStyle: true, style: 'scss', standalone: true },
                '@schematics/angular:directive': { standalone: true },
                '@schematics/angular:pipe': { standalone: true }
              },
              root: '',
              sourceRoot: 'src',
              prefix: 'aya',
              architect: {
                build: {
                  builder: '@angular-devkit/build-angular:browser-esbuild',
                  options: {
                    outputPath: 'dist',
                    index: 'src/index.html',
                    main: 'src/main.ts',
                    polyfills: [ 'zone.js' ],
                    tsConfig: 'tsconfig.app.json',
                    inlineStyleLanguage: 'scss',
                    assets: [
                      'src/favicon.ico',
                      'src/assets',
                      'src/appconfig.json',
                      'src/app-version.json',
                      'src/manifest.webmanifest',
                      { glob: 'Web.config', input: './', output: './' },
                      { glob: '**/*', input: 'node_modules/ngx-extended-pdf-viewer/assets', output: '/assets/' },
                      { glob: 'changelog.md', input: 'node_modules/ngx-extended-pdf-viewer/', output: '/assets/extended-pdf-viewer/changelog/' }
                    ],
                    styles: [ 'src/styles.scss' ],
                    stylePreprocessorOptions: { includePaths: [ 'node_modules/@aya/styles/lib' ] },
                    scripts: [],
                    vendorChunk: true,
                    extractLicenses: false,
                    buildOptimizer: false,
                    sourceMap: true,
                    optimization: false,
                    namedChunks: true,
                    externalDependencies: [ 'node_modules/@aya/styles/lib/abstracts' ]
                  },
                  configurations: {
                    production: {
                      optimization: true,
                      sourceMap: false,
                      namedChunks: false,
                      extractLicenses: true,
                      vendorChunk: false,
                      buildOptimizer: true,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.prod.ts' } ],
                      budgets: [ { type: 'initial', maximumWarning: '500kb', maximumError: '4mb' }, { type: 'anyComponentStyle', maximumWarning: '2kb', maximumError: '8kb' } ],
                      outputHashing: 'all'
                    },
                    development: { optimization: false, extractLicenses: false, sourceMap: true, namedChunks: true }
                  },
                  defaultConfiguration: 'production'
                },
                serve: {
                  builder: '@angular-devkit/build-angular:dev-server',
                  configurations: { production: { buildTarget: 'CandidatePortal.Web:build:production' } },
                  options: { buildTarget: 'CandidatePortal.Web:build:development' }
                },
                'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { buildTarget: 'CandidatePortal.Web:build' } },
                test: {
                  builder: '@angular-devkit/build-angular:karma',
                  options: {
                    polyfills: [ 'zone.js', 'zone.js/testing' ],
                    tsConfig: './tsconfig.spec.json',
                    karmaConfig: './karma.conf.js',
                    codeCoverageExclude: [ 'src/app/shared/api/api.ts' ],
                    inlineStyleLanguage: 'scss',
                    assets: [ 'src/favicon.ico', 'src/assets', 'src/manifest.webmanifest' ],
                    scripts: []
                  }
                },
                lint: { builder: '@angular-eslint/builder:lint', options: { eslintConfig: '.eslintrc.js', lintFilePatterns: [ '**/*.ts' ] } }
              }
            }
          },
          cli: { analytics: false, schematicCollections: [ '@ngneat/spectator' ] }
        },
        main: '\n' +
          '  \n' +
          "  import 'zone.js/testing';\n" +
          "  import { getTestBed } from '@angular/core/testing';\n" +
          '  import {\n' +
          '    BrowserDynamicTestingModule,\n' +
          '    platformBrowserDynamicTesting,\n' +
          "   } from '@angular/platform-browser-dynamic/testing';\n" +
          '\n' +
          '  // Initialize the Angular testing environment.\n' +
          '  getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {\n' +
          '    errorOnUnknownElements: true,\n' +
          '    errorOnUnknownProperties: true\n' +
          '  });'
      }
    },
    testFramework: { version: '[email protected]', configurator: '[email protected]', reporter: '[email protected]', starter: '[email protected]', autoDetected: true },
    env: { kind: 'chrome', type: 'browser', params: {}, viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    captureConsoleLog: true,
    filesWithNoCoverageCalculated: [],
    runAllTestsInAffectedTestFile: false,
    updateNoMoreThanOneSnapshotPerTestFileRun: false,
    compilers: {},
    logLimits: { inline: { depth: 5, elements: 5000 }, values: { default: { stringLength: 8192 }, autoExpand: { elements: 5000, stringLength: 8192, depth: 10 } } },
    preprocessors: {},
    maxConsoleMessagesPerTest: 100,
    maxTraceSteps: 999999,
    maxTraceStepsForWatchExpressionPrefetch: 10,
    autoConsoleLog: true,
    delays: { run: 0, edit: 100, update: 0 },
    workers: { initial: 0, regular: 0, recycle: false },
    teardown: undefined,
    automaticTestFileSelection: true,
    runSelectedTestsOnly: false,
    mapConsoleMessagesStackTrace: false,
    extensions: {},
    reportUnhandledPromises: false,
    throwOnBeforeUnload: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    runAllTestsWhenNoAffectedTests: false,
    configCode: 'auto.detect#978644118'
  },
  packageJSON: {
    dependencies: {
      '@angular/animations': '^18.2.12',
      '@angular/common': '^18.2.12',
      '@angular/compiler': '^18.2.12',
      '@angular/core': '^18.2.12',
      '@angular/forms': '^18.2.12',
      '@angular/material': '17.3.10',
      '@angular/platform-browser': '^18.2.12',
      '@angular/platform-browser-dynamic': '^18.2.12',
      '@angular/platform-server': '^18.2.12',
      '@angular/router': '^18.2.12',
      '@angular/ssr': '^18.2.12',
      '@aya/common': '^10.0.0',
      '@aya/styles': '^10.0.0',
      '@datadog/browser-logs': '^5.15.0',
      '@datadog/browser-rum': '^5.15.0',
      '@ngrx/signals': '^18.1.0',
      dayjs: '^1.11.10',
      'ngx-cookie-service': '^18.0.0',
      'ngx-extended-pdf-viewer': '^21.4.6',
      'ngx-mask': '^18.0.4',
      rxjs: '~7.8.1',
      tslib: '^2.8.1',
      'zone.js': '~0.14.4'
    },
    devDependencies: {
      '@angular-devkit/build-angular': '^18.2.12',
      '@angular-eslint/builder': '^18.3.0',
      '@angular-eslint/eslint-plugin': '^18.3.0',
      '@angular-eslint/eslint-plugin-template': '^18.3.0',
      '@angular-eslint/schematics': '^18.3.0',
      '@angular-eslint/template-parser': '^18.3.0',
      '@angular/cli': '^18.2.12',
      '@angular/compiler-cli': '^18.2.12',
      '@ngneat/spectator': '~18.0.1',
      '@ngrx/store-devtools': '^18.1.0',
      '@types/jasmine': '~5.1.0',
      '@types/node': '^20.12.7',
      '@typescript-eslint/eslint-plugin': '^7.2.0',
      '@typescript-eslint/parser': '^7.2.0',
      autoprefixer: '^10.4.16',
      eslint: '^8.57.0',
      'eslint-config-prettier': '^9.1.0',
      'eslint-import-resolver-typescript': '^3.6.1',
      'eslint-plugin-ban': '^1.6.0',
      'eslint-plugin-import': '^2.29.0',
      'eslint-plugin-jasmine': '^4.1.3',
      'eslint-plugin-jsdoc': '46.9.0',
      'eslint-plugin-prefer-arrow': '1.2.3',
      'eslint-plugin-prettier': '^5.0.1',
      'eslint-plugin-rxjs': '^5.0.3',
      husky: '^9.0.10',
      'jasmine-core': '~5.1.0',
      karma: '~6.4.4',
      'karma-chrome-launcher': '~3.2.0',
      'karma-coverage': '~2.2.0',
      'karma-jasmine': '~5.1.0',
      'karma-jasmine-html-reporter': '~2.1.0',
      'karma-junit-reporter': '^2.0.1',
      'lint-staged': '^15.2.2',
      'ng-mocks': '^14.13.1',
      nswag: '^13.20.0',
      postcss: '^8.4.33',
      prettier: '^3.1.0',
      puppeteer: '^22.6.5',
      stylelint: '^16.2.1',
      'stylelint-config-standard-scss': '^13.0.0',
      tailwindcss: '^3.4.1',
      typescript: '~5.5.4'
    }
  },
  fs: { numberOfFiles: 224 },
  debug: [
    '2025-02-11T16:18:11.500Z project waiting for initial run signal\n',
    '2025-02-11T16:18:11.504Z model Initialization Completed: 211ms\n',
    '2025-02-11T16:18:11.601Z config Attempting automatic configuration for angular\n',
    '2025-02-11T16:18:11.604Z angular/cli config Detected Angular CLI.\n',
    '2025-02-11T16:18:11.606Z angular/cli config Angular currentDirPath: "C:\\repos\\Applications\\CandidatePortal", workspaceDirPath: "C:\\repos\\Applications\\CandidatePortal"\n',
    '2025-02-11T16:18:12.493Z ui.service Starting UI service on port: 55000\n',
    '2025-02-11T16:18:12.495Z ui.service UI service started on port: 55000\n',
    '2025-02-11T16:18:13.265Z angular/cli karma project config Using builtin C:/repos/Applications/CandidatePortal/src/test.js.\n',
    '2025-02-11T16:18:13.287Z config Finished attempting automatic configuration for angular (1686ms)\n',
    '2025-02-11T16:18:13.288Z project Wallaby Node version: v20.18.0\n',
    '2025-02-11T16:18:13.288Z project Wallaby config: C:\\repos\\Applications\\CandidatePortal\\auto.detect\n',
    '2025-02-11T16:18:13.336Z fs File system starting\n',
    '2025-02-11T16:18:13.596Z fs File system scan completed\n',
    '2025-02-11T16:18:13.600Z project File cache: C:\\Users\\MichaelMcGee\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.421\\projects\\b6a5ad5b9db12582\n',
    '2025-02-11T16:18:13.631Z workers Parallelism for initial run: 18, for regular run: 9\n',
    '2025-02-11T16:18:13.631Z workers Starting run worker instance #0\n',
    '2025-02-11T16:18:13.631Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.635Z workers Starting run worker instance #1\n',
    '2025-02-11T16:18:13.635Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.637Z workers Starting run worker instance #2\n',
    '2025-02-11T16:18:13.637Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.639Z workers Starting run worker instance #3\n',
    '2025-02-11T16:18:13.639Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.641Z workers Starting run worker instance #4\n',
    '2025-02-11T16:18:13.641Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.644Z workers Starting run worker instance #5\n',
    '2025-02-11T16:18:13.644Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.647Z workers Starting run worker instance #6\n',
    '2025-02-11T16:18:13.647Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.650Z workers Starting run worker instance #7\n',
    '2025-02-11T16:18:13.650Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.653Z workers Starting run worker instance #8\n',
    '2025-02-11T16:18:13.653Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.656Z workers Starting run worker instance #9\n',
    '2025-02-11T16:18:13.656Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.659Z workers Starting run worker instance #10\n',
    '2025-02-11T16:18:13.659Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.662Z workers Starting run worker instance #11\n',
    '2025-02-11T16:18:13.662Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.666Z workers Starting run worker instance #12\n',
    '2025-02-11T16:18:13.666Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.670Z workers Starting run worker instance #13\n',
    '2025-02-11T16:18:13.670Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.674Z workers Starting run worker instance #14\n',
    '2025-02-11T16:18:13.674Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.677Z workers Starting run worker instance #15\n',
    '2025-02-11T16:18:13.677Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.681Z workers Starting run worker instance #16\n',
    '2025-02-11T16:18:13.681Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.684Z workers Starting run worker instance #17\n',
    '2025-02-11T16:18:13.684Z chromeRunner launch new instance (path: <default>, flags: --headless --disable-gpu --deterministic-fetch)\n',
    '2025-02-11T16:18:13.693Z workers Web server is listening at 59278\n',
    '2025-02-11T16:18:13.919Z project Stopping process pool\n',
    '2025-02-11T16:18:13.919Z project File cache is up-to-date, starting full test run\n',
    '2025-02-11T16:18:13.923Z project Running postprocessor\n',
    '2025-02-11T16:18:13.926Z postprocessor Processing started.\n',
    '2025-02-11T16:18:13.926Z postprocessor Initializing.\n',
    '2025-02-11T16:18:13.926Z postprocessor Initializing entry.\n',
    '2025-02-11T16:18:13.926Z postprocessor Sanitizing configuration.\n',
    '2025-02-11T16:18:13.927Z postprocessor Adjusting configuration.\n',
    '2025-02-11T16:18:13.933Z postprocessor Creating compiler.\n',
    '2025-02-11T16:18:14.179Z postprocessor Customizing compiler.\n',
    '2025-02-11T16:18:14.179Z postprocessor Compilation started.\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59260 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59261 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59262 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59263 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59264 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59265 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59266 timed out\n',
    '2025-02-11T16:18:23.764Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59267 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59268 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59269 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59270 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59271 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59272 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59273 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59274 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59275 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59276 timed out\n',
    '2025-02-11T16:18:23.765Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59277 timed out\n',
    '2025-02-11T16:18:24.354Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59260 succeeded\n',
    '2025-02-11T16:18:24.354Z workers Started run worker instance (immediate) #0\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59261 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #1\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59262 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #2\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59263 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #3\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59264 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #4\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59265 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #5\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59266 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #6\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59267 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #7\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59268 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #8\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59269 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #9\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59270 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #10\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59271 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #11\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59272 succeeded\n',
    '2025-02-11T16:18:24.355Z workers Started run worker instance (immediate) #12\n',
    '2025-02-11T16:18:24.355Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59273 succeeded\n',
    '2025-02-11T16:18:24.356Z workers Started run worker instance (immediate) #13\n',
    '2025-02-11T16:18:24.356Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59274 succeeded\n',
    '2025-02-11T16:18:24.356Z workers Started run worker instance (immediate) #14\n',
    '2025-02-11T16:18:24.356Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59275 succeeded\n',
    '2025-02-11T16:18:24.356Z workers Started run worker instance (immediate) #15\n',
    '2025-02-11T16:18:24.356Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59276 succeeded\n',
    '2025-02-11T16:18:24.356Z workers Started run worker instance (immediate) #16\n',
    '2025-02-11T16:18:24.356Z chromeRunner Connection to Chrome Debugger Protocol on 127.0.0.1:59277 succeeded\n',
    '2025-02-11T16:18:24.356Z workers Started run worker instance (immediate) #17\n',
    '2025-02-11T16:18:24.969Z postprocessor Compilation finished.\n',
    '2025-02-11T16:18:25.057Z postprocessor Emitting 1598 files.\n',
    '2025-02-11T16:18:25.108Z postprocessor Processing finished.\n',
    '2025-02-11T16:18:25.169Z project Postprocessor execution finished\n',
    '2025-02-11T16:18:25.169Z project Test run started; run priority: 3\n',
    '2025-02-11T16:18:25.172Z project Running all tests\n',
    '2025-02-11T16:18:25.182Z workers Starting test run, priority: 3\n',
    '2025-02-11T16:18:25.182Z chromeRunner Starting sandbox [worker #0, session #z71ep]\n',
    '2025-02-11T16:18:25.182Z chromeRunner Preparing sandbox [worker #0, session #z71ep]\n',
    '2025-02-11T16:18:25.185Z browserRunner Total files to load in sandbox: 5\n',
    '2025-02-11T16:18:25.187Z browserRunner Sandbox is generated [worker #0, session #z71ep]: http://localhost:59278/wallaby_sandbox0.html\n',
    '2025-02-11T16:18:25.187Z chromeRunner Prepared sandbox [worker #0, session #z71ep]\n',
    '2025-02-11T16:18:25.187Z workers [worker #0, session #z71ep] Running tests in sandbox\n',
    '2025-02-11T16:18:25.738Z workers [z71ep] Loaded 2 test(s)\n',
    '2025-02-11T16:18:25.847Z workers [z71ep] Test executed: should redirect to login\n',
    '2025-02-11T16:18:25.889Z workers [z71ep] Test executed: should parseUrl to email-verification when email not confirmed\n',
    '2025-02-11T16:18:25.936Z workers [z71ep] Run 2 test(s), skipped 0 test(s)\n',
    '2025-02-11T16:18:25.940Z workers [z71ep] Sandbox is responsive, closing it\n',
    '2025-02-11T16:18:25.940Z chromeRunner Closing tab as requested\n',
    '2025-02-11T16:18:25.941Z chromeRunner Closing Chrome Tab\n',
    '2025-02-11T16:18:25.944Z project Test run finished\n',
    '2025-02-11T16:18:25.948Z project Processed console.log entries\n',
    '2025-02-11T16:18:25.948Z project Processed loading sequences\n',
    '2025-02-11T16:18:25.949Z project Processed executed tests\n',
    '2025-02-11T16:18:25.990Z project Processed code coverage\n',
    '2025-02-11T16:18:26.049Z project Test run result processed and sent to IDE\n'
  ]
}
@NikGovorov
Copy link
Member

Could you please share the wallaby section of your package.json? From the diagnostic report, it looks like the files property is manually configured there.

files: [ { pattern: 'src/app/shared/api/api.ts', ignore: true, trigger: true, load: true, file: true } ]

@mmcgee-aya
Copy link
Author

"wallaby": {
"tests": [
"src/**/*.spec.ts"
],
"hints": {
"ignoreCoverageForFile": ""
},
"files": [
"!src/app/shared/api/api.ts"
],
"compilerOptions": {
"types": []
}
}

@mmcgee-aya
Copy link
Author

// Wallaby configuration file, see link for more information
// https://wallabyjs.com/docs/config/files.html

module.exports = function () {
return {
autoDetect: true,
files: {
override: function (filePatterns) {
filePatterns.push({ pattern: 'testing//*.ts' });
filePatterns.push({ pattern: 'testing/
/*.js' });
return filePatterns;
}
}
}
};

@smcenlly
Copy link
Member

Thanks for providing the additional details.

With the configuration that you've set, the files setting doesn't have any files to include to capture coverage. So the only files that you'll see indicators for are your src/**/*.spec.ts files.


Based on your configuration, we think that everything will work for you if you remove the wallaby section from your configuration file.

If it does not, you should create a Wallaby configuration file with appropriate overrides (as I think you suggested in your second comment), described in our docs. If you need a configuration file, we think the following will work for you:

rootDir/wallaby.js

module.exports = () => ({
  files: {
    override: (patterns) => {
      return [...patterns, '!src/app/shared/api/api.ts'];
    },
  },
});

Once you have created the configuration file, you will need to make sure to select to use your configuration file after running the Wallaby.js: Select Configuration command.

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

No branches or pull requests

3 participants