wallabyjs / public

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

window is not defined (diagnostics report included) #2533

Closed masteratt closed 3 years ago

masteratt commented 3 years ago

Hello,

Every time I try to start wallaby I get "window is not defined". I've tried automatic configuration per the link: https://wallabyjs.com/docs/intro/config.html#automatic-configuration to no avail.

Just in case, here's the Wallaby Js (again, do note I also tried automatic config):

module.exports = () => ({
    autoDetect: true,
    filesWithNoCoverageCalculated: [
        'src/main.ts',
        'src/polyfills.ts',
        'src/setup-jest.ts',
        'src/test.ts',
        'src/app/**/*.actions.ts',
        'src/app/**/*.stories.ts',
        'src/app/**/*.module.ts',
        'src/app/router/**/*',
        'src/environments/**/*',
        'src/assets/**/*'
    ],
});

And here's the diagnostics report:

{
  editorVersion: '1.49.3',
  pluginVersion: '1.0.245',
  editorType: 'VSCode',
  osVersion: 'win32 10.0.18363',
  nodeVersion: 'v12.16.1',
  coreVersion: '1.0.971',
  checksum: 'MGE4OTc0ZGE0MzU5MjQyZWEwMzY5ZGIxYTYyNTY3YWEsMTYyMTU1NTIwMDAwMCww',
  config: {
    filesWithNoCoverageCalculated: [
      'src/main.ts',
      'src/polyfills.ts',
      'src/setup-jest.ts',
      'src/test.ts',
      'src/app/**/*.actions.ts',
      'src/app/**/*.stories.ts',
      'src/app/**/*.module.ts',
      'src/app/router/**/*',
      'src/environments/**/*',
      'src/assets/**/*'
    ],
    diagnostics: {
      angular: {
        workspace: {
          '$schema': './node_modules/@angular/cli/lib/config/schema.json',
          version: 1,
          newProjectRoot: 'projects',
          projects: {
            'Hub.Web': {
              root: '',
              sourceRoot: 'src',
              projectType: 'application',
              architect: {
                build: {
                  builder: '@angular-devkit/build-angular:browser',
                  options: {
                    outputPath: 'dist',
                    index: 'src/index.html',
                    main: 'src/main.ts',
                    tsConfig: 'src/tsconfig.app.json',
                    progress: true,
                    aot: true,
                    polyfills: 'src/polyfills.ts',
                    assets: [ 'src/assets', 'src/assets/img', 'src/web.config' ],
                    budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                    styles: [ 'src/styles.scss' ],
                    scripts: []
                  },
                  configurations: {
                    production: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      optimization: true,
                      outputHashing: 'all',
                      sourceMap: true,
                      extractCss: true,
                      namedChunks: false,
                      aot: true,
                      extractLicenses: true,
                      vendorChunk: false,
                      buildOptimizer: true,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.prod.ts' } ]
                    },
                    uat: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.uat.ts' } ]
                    },
                    dev: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.dev.ts' } ]
                    },
                    local: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.local.ts' } ]
                    },
                    mock: {
                      budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],
                      optimization: true,
                      outputHashing: 'all',
                      sourceMap: false,
                      extractCss: true,
                      namedChunks: false,
                      aot: true,
                      extractLicenses: true,
                      vendorChunk: false,
                      buildOptimizer: true,
                      fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.test.ts' } ]
                    }
                  }
                },
                serve: {
                  builder: '@angular-devkit/build-angular:dev-server',
                  options: { browserTarget: 'Hub.Web:build' },
                  configurations: {
                    production: { browserTarget: 'Hub.Web:build:production' },
                    uat: { browserTarget: 'Hub.Web:build:uat' },
                    local: { browserTarget: 'Hub.Web:build:local' },
                    dev: { browserTarget: 'Hub.Web:build:dev' },
                    mock: { browserTarget: 'Hub.Web:build:mock' }
                  }
                },
                'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'Hub.Web:build' } },
                test: {
                  builder: '@angular-devkit/build-angular:karma',
                  options: {
                    main: 'src/test.ts',
                    karmaConfig: './karma.conf.js',
                    polyfills: 'src/polyfills.ts',
                    tsConfig: 'src/tsconfig.spec.json',
                    scripts: [],
                    styles: [ 'node_modules/bootstrap/scss/bootstrap.scss', 'src/styles.scss' ],
                    assets: [ 'src/assets', 'src/assets/img', 'src/web.config' ],
                    codeCoverage: true,
                    sourceMap: true,
                    watch: false
                  }
                },
                lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: [ 'src/tsconfig.app.json', 'src/tsconfig.spec.json' ], exclude: [ '**/node_modules/**' ] } }
              }
            },
            'Hub.Web-e2e': {
              root: 'e2e',
              sourceRoot: 'e2e',
              projectType: 'application',
              architect: {
                e2e: { builder: '@angular-devkit/build-angular:protractor', options: { protractorConfig: './protractor.conf.js', devServerTarget: 'Hub.Web:serve:mock' } },
                lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: [ 'e2e/tsconfig.e2e.json' ], exclude: [ '**/node_modules/**' ] } }
              }
            }
          },
          defaultProject: 'Hub.Web',
          schematics: {
            '@schematics/angular:component': { prefix: 'app', style: 'scss' },
            '@schematics/angular:directive': { prefix: 'app' },
            '@ngneat/spectator:spectator-component': { styleext: 'scss' }
          },
          cli: { defaultCollection: '@ngneat/spectator' }
        }
      },
      jest: {
        config: {
          configs: [
            {
              automock: false,
              browser: false,
              cache: true,
              cacheDirectory: 'C:\\Users\\[username]\\AppData\\Local\\Temp\\jest',
              clearMocks: false,
              coveragePathIgnorePatterns: [ '\\\\node_modules\\\\' ],
              cwd: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp',
              dependencyExtractor: undefined,
              detectLeaks: undefined,
              detectOpenHandles: undefined,
              displayName: undefined,
              errorOnDeprecated: false,
              extraGlobals: [],
              filter: undefined,
              forceCoverageMatch: [],
              globalSetup: undefined,
              globalTeardown: undefined,
              globals: {
                'ts-jest': {
                  tsConfig: '<rootDir>/src/tsconfig.spec.json',
                  stringifyContentPathRegex: '\\.html$',
                  astTransformers: [ 'jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer' ]
                }
              },
              haste: { computeSha1: false, providesModuleNodeModules: [], throwOnModuleCollision: false },
              moduleDirectories: [ 'node_modules' ],
              moduleFileExtensions: [ 'ts', 'html', 'js', 'json' ],
              moduleLoader: undefined,
              moduleNameMapper: [
                [ '@app/(.*)', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\app\\$1' ],
                [ '@assets/(.*)', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\assets\\$1' ],
                [ '@core/(.*)', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\app\\core\\$1' ],
                [ '@env', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\environments\\environment' ],
                [ '@src/(.*)', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\src\\$1' ],
                [ '@state/(.*)', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\app\\state\\$1' ],
                [ '^src/(.*)$', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\$1' ],
                [ '^app/(.*)$', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\app\\$1' ],
                [ '^assets/(.*)$', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\assets\\$1' ],
                [ '^environments/(.*)$', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\environments\\$1' ]
              ],
              modulePathIgnorePatterns: [],
              modulePaths: undefined,
              name: 'b4671718b179c386e4a45d40e3e049e2',
              prettierPath: 'prettier',
              resetMocks: false,
              resetModules: false,
              resolver: undefined,
              restoreMocks: false,
              rootDir: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp',
              roots: [ 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src' ],
              runner: 'jest-runner',
              setupFiles: [],
              setupFilesAfterEnv: [ 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\setup-jest.ts' ],
              skipFilter: false,
              skipNodeResolution: undefined,
              snapshotResolver: undefined,
              snapshotSerializers: [
                'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\jest-preset-angular\\build\\AngularNoNgAttributesSnapshotSerializer.js',
                'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\jest-preset-angular\\build\\AngularSnapshotSerializer.js',
                'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\jest-preset-angular\\build\\HTMLCommentSerializer.js'
              ],
              testEnvironment: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\jest-environment-jsdom-fifteen\\lib\\index.js',
              testEnvironmentOptions: {},
              testLocationInResults: false,
              testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec).[jt]s?(x)' ],
              testPathIgnorePatterns: [ '\\\\node_modules\\\\' ],
              testRegex: [],
              testRunner: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\jest-jasmine2\\build\\index.js',
              testURL: 'http://localhost',
              timers: 'real',
              transform: [ [ '^.+\\.(ts|js|html)$', 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\node_modules\\ts-jest\\dist\\index.js', {} ] ],
              transformIgnorePatterns: [ 'node_modules\\\\(?!@ngrx)' ],
              unmockedModulePathPatterns: undefined,
              watchPathIgnorePatterns: []
            }
          ],
          globalConfig: {
            bail: 0,
            changedFilesWithAncestor: false,
            changedSince: undefined,
            collectCoverage: false,
            collectCoverageFrom: [],
            collectCoverageOnlyFrom: undefined,
            coverageDirectory: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\coverage',
            coverageProvider: 'babel',
            coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
            coverageThreshold: undefined,
            detectLeaks: undefined,
            detectOpenHandles: undefined,
            enabledTestsMap: undefined,
            errorOnDeprecated: false,
            expand: false,
            filter: undefined,
            findRelatedTests: false,
            forceExit: false,
            globalSetup: undefined,
            globalTeardown: undefined,
            json: false,
            lastCommit: false,
            listTests: undefined,
            logHeapUsage: false,
            maxConcurrency: 5,
            maxWorkers: 11,
            noSCM: undefined,
            noStackTrace: false,
            nonFlagArgs: undefined,
            notify: false,
            notifyMode: 'failure-change',
            onlyChanged: false,
            onlyFailures: false,
            outputFile: undefined,
            passWithNoTests: undefined,
            projects: [],
            replname: undefined,
            reporters: undefined,
            rootDir: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp',
            runTestsByPath: false,
            silent: undefined,
            skipFilter: false,
            testFailureExitCode: 1,
            testNamePattern: undefined,
            testPathPattern: '',
            testResultsProcessor: undefined,
            testSequencer: 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\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\\\\|\\\\\\..+\\\\' ],
            testPathIgnorePatterns: [ '\\\\node_modules\\\\', '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\\\\\..+\\\\' ],
            testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec).[jt]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 },
    env: { kind: 'chrome', type: 'node', params: {}, runner: 'C:\\Program Files\\nodejs\\node.exe', viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
    filesWithCoverageCalculated: [],
    globalSetup: false,
    micromatch: true,
    files: [
      { pattern: '\\\\node_modules\\\\', regexp: /\\node_modules\\/, ignore: true, trigger: true, load: true },
      { pattern: '\\.\\\\dist\\\\|\\.\\\\build\\\\|\\.\\\\coverage\\\\|\\\\\\..+\\\\', regexp: /\.\\dist\\|\.\\build\\|\.\\coverage\\|\\\..+\\/, ignore: true, trigger: true, load: true },
      { pattern: 'src/**', ignore: false, trigger: true, load: true, order: 1 },
      { pattern: 'src/**/__tests__/**/*.[jt]s?(x)', ignore: true, trigger: true, load: true },
      { pattern: 'src/**/?(*.)+(spec).[jt]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\\\\|\\\\\\..+\\\\',
        regexp: /\.\\dist\\|\.\\build\\|\.\\coverage\\|\\\..+\\/,
        ignore: true,
        trigger: true,
        load: true,
        test: true
      },
      { pattern: 'src/**/__tests__/**/*.[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 },
      { pattern: 'src/**/?(*.)+(spec).[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 3 }
    ],
    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: {},
    reportUnhandledPromises: true,
    slowTestThreshold: 75,
    lowCoverageThreshold: 80,
    loose: true,
    configCode: 'module.exports = () => ({\r\n' +
      '    autoDetect: true,\r\n' +
      '    filesWithNoCoverageCalculated: [\r\n' +
      "        'src/main.ts',\r\n" +
      "        'src/polyfills.ts',\r\n" +
      "        'src/setup-jest.ts',\r\n" +
      "        'src/test.ts',\r\n" +
      "        'src/app/**/*.actions.ts',\r\n" +
      "        'src/app/**/*.stories.ts',\r\n" +
      "        'src/app/**/*.module.ts',\r\n" +
      "        'src/app/router/**/*',\r\n" +
      "        'src/environments/**/*',\r\n" +
      "        'src/assets/**/*'\r\n" +
      '    ],\r\n' +
      '});'
  },
  packageJSON: {
    dependencies: {
      '@angular/animations': '~9.1.1',
      '@angular/common': '~9.1.1',
      '@angular/compiler': '~9.1.1',
      '@angular/core': '~9.1.1',
      '@angular/forms': '~9.1.1',
      '@angular/localize': '^9.1.1',
      '@angular/platform-browser': '~9.1.1',
      '@angular/platform-browser-dynamic': '~9.1.1',
      '@angular/router': '~9.1.1',
      '@fortawesome/angular-fontawesome': '^0.3.0',
      '@fortawesome/fontawesome-svg-core': '^1.2.26',
      '@fortawesome/free-brands-svg-icons': '^5.12.0',
      '@fortawesome/free-regular-svg-icons': '^5.12.0',
      '@fortawesome/free-solid-svg-icons': '^5.12.0',
      '@ng-bootstrap/ng-bootstrap': '^6.2.0',
      '@ngrx/effects': '^9.1.0',
      '@ngrx/store': '^9.1.0',
      '@ngx-translate/core': '^11.0.1',
      '@ngx-translate/http-loader': '^4.0.0',
      '@types/raygun4js': '^2.13.2',
      'angular-oauth2-oidc': '^9.2.2',
      bootstrap: '^4.4.1',
      'classlist.js': '^1.1.20150312',
      'core-js': '^2.6.11',
      faker: '^4.1.0',
      'ng-inline-svg': '^9.1.0',
      raygun4js: '^2.18.2',
      rxjs: '^6.5.5',
      'rxjs-compat': '^6.5.3',
      tslib: '^1.10.0',
      'web-animations-js': '^2.3.2',
      'whatwg-fetch': '^3.0.0',
      'zone.js': '~0.10.3'
    },
    devDependencies: {
      '@angular-devkit/build-angular': '~0.901.1',
      '@angular/cli': '~9.1.1',
      '@angular/compiler-cli': '~9.1.1',
      '@ngneat/spectator': '^4.10.0',
      '@storybook/addon-a11y': '^5.3.0-rc.8',
      '@storybook/addon-actions': '^5.3.0-rc.8',
      '@storybook/addon-knobs': '^5.3.0-rc.8',
      '@storybook/addon-links': '^5.3.0-rc.8',
      '@storybook/addon-notes': '^5.3.0-rc.8',
      '@storybook/addon-viewport': '^5.3.0-rc.8',
      '@storybook/addons': '^5.3.0-rc.8',
      '@storybook/angular': '^5.3.0-rc.8',
      '@types/faker': '^4.1.8',
      '@types/jest': '25.1.2',
      '@types/node': '^12.11.1',
      '@types/puppeteer': '^1.20.3',
      'babel-loader': '^8.0.6',
      'browser-sync': '^2.26.7',
      codelyzer: '^5.1.2',
      depcheck: '^0.9.2',
      gulp: '^4.0.2',
      'gulp-clean': '^0.4.0',
      'gulp-flatten': '^0.4.0',
      'gulp-imagemin': '^6.2.0',
      'gulp-raygun-sourcemaps': '^1.0.1',
      'html-loader': '^0.5.5',
      'jasmine-reporters': '^2.3.2',
      'jasmine-spec-reporter': '~4.2.1',
      jest: '25.1.0',
      'jest-junit': '^10.0.0',
      'jest-marbles': '^2.5.1',
      'jest-preset-angular': '8.0.0',
      'ng-mocks': '^8.1.0',
      protractor: '^5.4.2',
      'protractor-beautiful-reporter': '^1.3.6',
      'protractor-console-plugin': '^0.1.1',
      puppeteer: '^2.0.0',
      'raw-loader': '^1.0.0',
      'storybook-host': '^5.1.0',
      storycap: '^2.3.4',
      'to-string-loader': '^1.1.6',
      'ts-node': '~4.1.0',
      'tsconfig-paths': '^3.9.0',
      tslint: '^6.0.0',
      typescript: '^3.6.4',
      'wallaby-webpack': '^3.9.15',
      'webpack-bundle-analyzer': '^3.6.0'
    }
  },
  fs: { numberOfFiles: 806 },
  debug: [
    '2020-10-06T13:51:11.785Z angular/cli config Detected Angular CLI.\n',
    "2020-10-06T13:51:16.686Z angular/cli config Error: ENOENT: no such file or directory, open 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\test.ts'\n",
    '2020-10-06T13:51:16.688Z angular/cli config Angular.json: \n' +
      ' {\n' +
      "  '$schema': './node_modules/@angular/cli/lib/config/schema.json',\n" +
      '  version: 1,\n' +
      "  newProjectRoot: 'projects',\n" +
      '  projects: {\n' +
      "    'Hub.Web': {\n" +
      "      root: '',\n" +
      "      sourceRoot: 'src',\n" +
      "      projectType: 'application',\n" +
      '      architect: {\n' +
      '        build: {\n' +
      "          builder: '@angular-devkit/build-angular:browser',\n" +
      '          options: {\n' +
      "            outputPath: 'dist',\n" +
      "            index: 'src/index.html',\n" +
      "            main: 'src/main.ts',\n" +
      "            tsConfig: 'src/tsconfig.app.json',\n" +
      '            progress: true,\n' +
      '            aot: true,\n' +
      "            polyfills: 'src/polyfills.ts',\n" +
      "            assets: [ 'src/assets', 'src/assets/img', 'src/web.config' ],\n" +
      "            budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      "            styles: [ 'src/styles.scss' ],\n" +
      '            scripts: []\n' +
      '          },\n' +
      '          configurations: {\n' +
      '            production: {\n' +
      "              budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      '              optimization: true,\n' +
      "              outputHashing: 'all',\n" +
      '              sourceMap: true,\n' +
      '              extractCss: true,\n' +
      '              namedChunks: false,\n' +
      '              aot: true,\n' +
      '              extractLicenses: true,\n' +
      '              vendorChunk: false,\n' +
      '              buildOptimizer: true,\n' +
      "              fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.prod.ts' } ]\n" +
      '            },\n' +
      '            uat: {\n' +
      "              budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      "              fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.uat.ts' } ]\n" +
      '            },\n' +
      '            dev: {\n' +
      "              budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      "              fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.dev.ts' } ]\n" +
      '            },\n' +
      '            local: {\n' +
      "              budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      "              fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.local.ts' } ]\n" +
      '            },\n' +
      '            mock: {\n' +
      "              budgets: [ { type: 'anyComponentStyle', maximumWarning: '6kb' } ],\n" +
      '              optimization: true,\n' +
      "              outputHashing: 'all',\n" +
      '              sourceMap: false,\n' +
      '              extractCss: true,\n' +
      '              namedChunks: false,\n' +
      '              aot: true,\n' +
      '              extractLicenses: true,\n' +
      '              vendorChunk: false,\n' +
      '              buildOptimizer: true,\n' +
      "              fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.test.ts' } ]\n" +
      '            }\n' +
      '          }\n' +
      '        },\n' +
      '        serve: {\n' +
      "          builder: '@angular-devkit/build-angular:dev-server',\n" +
      "          options: { browserTarget: 'Hub.Web:build' },\n" +
      '          configurations: {\n' +
      "            production: { browserTarget: 'Hub.Web:build:production' },\n" +
      "            uat: { browserTarget: 'Hub.Web:build:uat' },\n" +
      "            local: { browserTarget: 'Hub.Web:build:local' },\n" +
      "            dev: { browserTarget: 'Hub.Web:build:dev' },\n" +
      "            mock: { browserTarget: 'Hub.Web:build:mock' }\n" +
      '          }\n' +
      '        },\n' +
      "        'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'Hub.Web:build' } },\n" +
      '        test: {\n' +
      "          builder: '@angular-devkit/build-angular:karma',\n" +
      '          options: {\n' +
      "            main: 'src/test.ts',\n" +
      "            karmaConfig: './karma.conf.js',\n" +
      "            polyfills: 'src/polyfills.ts',\n" +
      "            tsConfig: 'src/tsconfig.spec.json',\n" +
      '            scripts: [],\n' +
      "            styles: [ 'node_modules/bootstrap/scss/bootstrap.scss', 'src/styles.scss' ],\n" +
      "            assets: [ 'src/assets', 'src/assets/img', 'src/web.config' ],\n" +
      '            codeCoverage: true,\n' +
      '            sourceMap: true,\n' +
      '            watch: false\n' +
      '          }\n' +
      '        },\n' +
      "        lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: [ 'src/tsconfig.app.json', 'src/tsconfig.spec.json' ], exclude: [ '**/node_modules/**' ] } }\n" +
      '      }\n' +
      '    },\n' +
      "    'Hub.Web-e2e': {\n" +
      "      root: 'e2e',\n" +
      "      sourceRoot: 'e2e',\n" +
      "      projectType: 'application',\n" +
      '      architect: {\n' +
      "        e2e: { builder: '@angular-devkit/build-angular:protractor', options: { protractorConfig: './protractor.conf.js', devServerTarget: 'Hub.Web:serve:mock' } },\n" +
      "        lint: { builder: '@angular-devkit/build-angular:tslint', options: { tsConfig: [ 'e2e/tsconfig.e2e.json' ], exclude: [ '**/node_modules/**' ] } }\n" +
      '      }\n' +
      '    }\n' +
      '  },\n' +
      "  defaultProject: 'Hub.Web',\n" +
      "  schematics: { '@schematics/angular:component': { prefix: 'app', style: 'scss' }, '@schematics/angular:directive': { prefix: 'app' }, '@ngneat/spectator:spectator-component': { styleext: 'scss' } },\n" +
      "  cli: { defaultCollection: '@ngneat/spectator' }\n" +
      '}\n',
    "2020-10-06T13:51:16.688Z angular/cli config Error: ENOENT: no such file or directory, open 'C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\src\\test.ts'\n",
    '2020-10-06T13:51:16.826Z jest/config Detected Jest.\n',
    '2020-10-06T13:51:16.826Z jest/config Configured Jest.\n',
    '2020-10-06T13:51:16.828Z project Wallaby Node version: v12.16.1\n',
    '2020-10-06T13:51:16.828Z project Wallaby config: C:\\Users\\[username]\\source\\repos\\CustomerHub\\Hub.Web\\ClientApp\\wallaby.js\n',
    '2020-10-06T13:51:18.999Z project File cache: C:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\projects\\265e2f954190c530\n',
    '2020-10-06T13:51:19.068Z uiService Listening port 51235\n',
    '2020-10-06T13:51:19.089Z project package.json file change detected, invalidating local cache\n',
    '2020-10-06T13:51:19.134Z workers Parallelism for initial run: 10, for regular run: 5\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #0\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #1\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #2\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #3\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #4\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #5\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #6\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #7\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #8\n',
    '2020-10-06T13:51:19.135Z workers Starting run worker instance #9\n',
    '2020-10-06T13:51:19.136Z workers Web server is listening at 64883\n',
    '2020-10-06T13:51:19.137Z project File cache requires some updates, waiting required files from IDE\n',
    '2020-10-06T13:51:19.359Z extended-core New document or complex document change\n',
    '2020-10-06T13:51:19.645Z workers Started run worker instance (delayed) #0\n',
    '2020-10-06T13:51:19.663Z workers Started run worker instance (delayed) #1\n',
    '2020-10-06T13:51:19.670Z workers Started run worker instance (delayed) #2\n',
    '2020-10-06T13:51:19.690Z workers Started run worker instance (delayed) #3\n',
    '2020-10-06T13:51:19.696Z workers Started run worker instance (delayed) #4\n',
    '2020-10-06T13:51:19.701Z workers Started run worker instance (delayed) #5\n',
    '2020-10-06T13:51:19.705Z workers Started run worker instance (delayed) #6\n',
    '2020-10-06T13:51:19.726Z workers Started run worker instance (delayed) #7\n',
    '2020-10-06T13:51:19.766Z workers Started run worker instance (delayed) #8\n',
    '2020-10-06T13:51:19.780Z workers Started run worker instance (delayed) #9\n',
    '2020-10-06T13:51:19.797Z project Stopping process pool\n',
    '2020-10-06T13:51:19.798Z project Test run started; run priority: 3\n',
    '2020-10-06T13:51:19.801Z project Running all tests\n',
    '2020-10-06T13:51:19.813Z workers Starting test run, priority: 3\n',
    '2020-10-06T13:51:19.813Z workers Distributing tests between 10 workers\n',
    '2020-10-06T13:51:19.815Z workers Running tests in parallel\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #0, session #082jj]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #1, session #ydy76]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #2, session #oa3dr]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #3, session #tmjo3]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #4, session #dn8ev]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #5, session #t6tzq]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #6, session #znpti]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #7, session #06wg4]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #8, session #lyv9b]\n',
    '2020-10-06T13:51:19.816Z nodeRunner Starting sandbox [worker #9, session #os63q]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #0, session #082jj]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #1, session #ydy76]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #2, session #oa3dr]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #3, session #tmjo3]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #4, session #dn8ev]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #5, session #t6tzq]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #6, session #znpti]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #7, session #06wg4]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #8, session #lyv9b]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Preparing sandbox [worker #9, session #os63q]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #0, session #082jj]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #1, session #ydy76]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #2, session #oa3dr]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #3, session #tmjo3]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #4, session #dn8ev]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #5, session #t6tzq]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #6, session #znpti]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #7, session #06wg4]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #8, session #lyv9b]\n',
    '2020-10-06T13:51:19.817Z nodeRunner Prepared sandbox [worker #9, session #os63q]\n',
    '2020-10-06T13:51:19.817Z workers [worker #0, session #082jj] Running tests in sandbox\n',
    '2020-10-06T13:51:19.819Z workers [worker #1, session #ydy76] Running tests in sandbox\n',
    '2020-10-06T13:51:19.821Z workers [worker #2, session #oa3dr] Running tests in sandbox\n',
    '2020-10-06T13:51:19.822Z workers [worker #3, session #tmjo3] Running tests in sandbox\n',
    '2020-10-06T13:51:19.824Z workers [worker #4, session #dn8ev] Running tests in sandbox\n',
    '2020-10-06T13:51:19.830Z workers [worker #5, session #t6tzq] Running tests in sandbox\n',
    '2020-10-06T13:51:19.831Z workers [worker #6, session #znpti] Running tests in sandbox\n',
    '2020-10-06T13:51:19.832Z workers [worker #7, session #06wg4] Running tests in sandbox\n',
    '2020-10-06T13:51:19.833Z workers [worker #8, session #lyv9b] Running tests in sandbox\n',
    '2020-10-06T13:51:19.834Z workers [worker #9, session #os63q] Running tests in sandbox\n',
    '2020-10-06T13:51:19.857Z workers Sandbox (active) [082jj] error: window is not defined\n',
    '2020-10-06T13:51:19.859Z workers Sandbox (active) [06wg4] error: window is not defined\n',
    '2020-10-06T13:51:19.859Z workers Sandbox (active) [dn8ev] error: window is not defined\n',
    '2020-10-06T13:51:19.859Z workers Sandbox (active) [ydy76] error: window is not defined\n',
    '2020-10-06T13:51:19.860Z workers Sandbox (active) [os63q] error: window is not defined\n',
    '2020-10-06T13:51:19.860Z workers Sandbox (active) [t6tzq] error: window is not defined\n',
    '2020-10-06T13:51:19.860Z workers Sandbox (active) [oa3dr] error: window is not defined\n',
    '2020-10-06T13:51:19.861Z workers Sandbox (active) [tmjo3] error: window is not defined\n',
    '2020-10-06T13:51:19.861Z workers Sandbox (active) [znpti] error: window is not defined\n',
    '2020-10-06T13:51:19.862Z workers Sandbox (active) [lyv9b] error: window is not defined\n',
    '2020-10-06T13:51:19.959Z workers [082jj] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.960Z workers [06wg4] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.960Z workers [dn8ev] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.961Z workers [ydy76] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.961Z workers [os63q] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.961Z workers [t6tzq] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.961Z workers [oa3dr] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.962Z workers [tmjo3] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.962Z workers [znpti] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.962Z workers [lyv9b] Run 0 test(s), skipped 0 test(s)\n',
    '2020-10-06T13:51:19.963Z workers [082jj] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.964Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.966Z workers [06wg4] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.966Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.966Z workers [dn8ev] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.966Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.966Z workers [ydy76] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.967Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.967Z workers [os63q] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.967Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.967Z workers [t6tzq] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.968Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.968Z workers [oa3dr] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.968Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.968Z workers [tmjo3] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.968Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.968Z workers [znpti] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.968Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.969Z workers [lyv9b] Sandbox is responsive, closing it\n',
    '2020-10-06T13:51:19.969Z workers Failed to map the stack to user code, entry message: window is not defined, stack: ReferenceError: window is not defined\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1710)\n' +
      '    at eval (eval at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44), <anonymous>:1:1747)\n' +
      '    at module.exports (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\runners\\node\\bootstrap.js:14:44)\n' +
      '    at F.in:run (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:18412)\n' +
      '    at WebSocket.<anonymous> (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\server.js:20:15958)\n' +
      '    at WebSocket.emit (events.js:311:20)\n' +
      '    at Receiver.ontext (c:\\Users\\[username]\\.vscode\\extensions\\wallabyjs.wallaby-vscode-1.0.245\\wallaby31042d\\node_modules\\ws\\lib\\WebSocket.js:841:10)\n' +
      '    at c:\n',
    '2020-10-06T13:51:19.969Z workers Merging parallel test run results\n',
    '2020-10-06T13:51:19.969Z project Test run finished\n',
    '2020-10-06T13:51:19.970Z project Processed console.log entries\n',
    '2020-10-06T13:51:19.970Z project Processed loading sequences\n',
    '2020-10-06T13:51:19.970Z project Processed executed tests\n',
    '2020-10-06T13:51:19.971Z project Processed code coverage\n',
    '2020-10-06T13:51:19.973Z project Test run result processed and sent to IDE\n'
  ]
}

Thanks for any guidance

smcenlly commented 3 years ago

Can you please confirm that ng test is working outside of Wallaby?

Looking at your angular.json in your diagnostics report, it looks like some paths may be broken (outside of wallaby) which we think is the cause of your problem. From your wallaby diagnostics report:

Error: ENOENT: no such file or directory, open 'C:\Users\[username]\source\repos\CustomerHub\Hub.Web\ClientApp\src\test.ts'\n",

We used your angular.json configuration as a base for a new project and received other errors when using ng test:

ERROR in error TS6053: File 'C:/Temp/wallaby-2533/ClientApp/src/src/polyfills.ts' not found.

Because you also have jest installed as a dependency, because your angular configuration is not valid, Wallaby will then generate an automatic configuration for jest and run your tests using jest, where window is not available like it is when your tests run in the browser using Angular's default karma test runner.

Assuming there is something wrong with your angular.json, once you fix that up, Wallaby should work for you. If your tests are running from the command line, can you please provide us with details of how you're running them and potentially provide a sample project (if that's possible)?

masteratt commented 3 years ago

Hi @smcenlly ,

Just to note, npm test was working fine (let me tell you, using that exclusively really made me appreciate wallaby more!).

For wallaby, and bear with me as I'm new to angular (newer yet to angular unit testing): You have pointed me in the right direction and I removed the 'test' object from angular.json as that object had a 'main' data that was pointing to a file that hasn't existed in the project for some time and there were no other changes to angular.json from when it was working and now :/. So I'm not sure how it was working before but now removing the broken test object from angular.json, I can run both wallaby and npm test 👍

Thanks for looking into the diagnostic and coming back with a clear area for me to look into.

If you have any additions, please feel free to add them but for the sake of keeping the board clean, I'll close the issue as it has been solved.