Closed zstundys closed 2 years ago
The version of Wallaby that you are using v1.0.1194
was released on 15 Dec 2021. Since then, there have been a number of breaking changes made to the latest versions of Jest that Wallaby has been updated to support.
Please update to the latest version of Wallaby, it will fix your problem. If your license has expired and you would like to use the latest version, you may request a 15-day trial to confirm the issue is fixed for you. You may renew your license via our website (select to Claim your existing user discount), or else email us: hello@wallabyjs.com
Issue description or question
Running wallaby on an Angular 14 project with Jest 28, I'm getting the following errors:
Previous Angular/jest versions (13 with 27 jest) worked fine previously. Thanks for any help ;)
### Wallaby diagnostics report
```js { editorVersion: '1.67.2', pluginVersion: '1.0.338', editorType: 'VSCode', osVersion: 'linux 5.15.0-37-generic', nodeVersion: 'v16.13.0', coreVersion: '1.0.1194', checksum: 'M2RkNmJhOTAxM2UzOWJlZDk2MjA0YmQxYmNlOGZlNWQsMTYzOTYxMjgwMDAwMCww', config: { diagnostics: { angular: { workspace: { '$schema': './node_modules/@angular/cli/lib/config/schema.json', version: 1, newProjectRoot: 'projects', projects: { 'likuciai-frontend': { projectType: 'application', schematics: { '@schematics/angular:component': { style: 'scss' }, '@schematics/angular:application': { strict: true } }, root: '', sourceRoot: 'src', prefix: 'app', architect: { build: { builder: '@angular-devkit/build-angular:browser', options: { outputPath: 'dist/likuciai-frontend', index: 'src/index.html', main: 'src/main.ts', polyfills: 'src/polyfills.ts', tsConfig: 'tsconfig.app.json', inlineStyleLanguage: 'scss', assets: [ 'src/favicon.ico', 'src/assets' ], styles: [ 'src/scss/styles.scss' ], scripts: [] }, configurations: { production: { budgets: [ { type: 'initial', maximumWarning: '500kb', maximumError: '1.5mb' }, { type: 'anyComponentStyle', maximumWarning: '2kb', maximumError: '4kb' } ], fileReplacements: [ { replace: 'src/environments/environment.ts', with: 'src/environments/environment.prod.ts' } ], outputHashing: 'all' }, development: { buildOptimizer: false, optimization: false, vendorChunk: true, extractLicenses: false, sourceMap: true, namedChunks: true } }, defaultConfiguration: 'production' }, serve: { builder: '@angular-devkit/build-angular:dev-server', configurations: { production: { browserTarget: 'likuciai-frontend:build:production' }, development: { browserTarget: 'likuciai-frontend:build:development', proxyConfig: 'src/proxy.conf.json' } }, defaultConfiguration: 'development' }, 'extract-i18n': { builder: '@angular-devkit/build-angular:extract-i18n', options: { browserTarget: 'likuciai-frontend:build' } }, test: { builder: '@angular-builders/jest:run', options: { polyfills: [ 'src/polyfills.ts' ], tsConfig: 'tsconfig.spec.json', inlineStyleLanguage: [ 'scss' ], assets: [ 'src/favicon.ico', 'src/assets' ], styles: [ 'src/scss/styles.scss' ], scripts: [] } }, lint: { builder: '@angular-eslint/builder:lint', options: { lintFilePatterns: [ 'src/**/*.ts', 'src/**/*.html' ] } } } } }, cli: { schematicCollections: [ '@angular-eslint/schematics' ] } } }, jest: { config: { configs: [ { automock: false, cache: true, cacheDirectory: '/tmp/jest_rs', clearMocks: false, coveragePathIgnorePatterns: [ '/node_modules/' ], cwd: '