Closed sdrowe closed 3 years ago
I can see from your diagnostics report that you are explicitly setting the files
and tests
sections for your project:
wallaby.js configuration
module.exports = function (wallaby) {
return {
autoDetect: true,
files: [
'libs/shared/src/**/*.ts',
'apps/carrier/src/**/*.ts',
'apps/customer/src/**/*.ts',
{ pattern: 'libs/shared/src/**/*spec.ts', ignore: true },
{ pattern: 'apps/carrier/src/**/*spec.ts', ignore: true },
{ pattern: 'apps/customer/src/**/*spec.ts', ignore: true },
],
tests: [
'libs/shared/src/**/*spec.ts',
'apps/carrier/src/**/*spec.ts',
'apps/customer/src/**/*spec.ts',
],
};
};
Is there a reason for you doing this? This may be the cause of your problem. For projects that use automatic configuration, your files and tests properties will be automatically set based on your project’s configuration. There are two ways to configure different or additional files and tests when using automatic configuration:
Modify automatic configuration files and/or tests You may modify the files and/or tests properties that are automatically set by Wallaby’s automatic configuration by creating a files or tests property with an object containing an override function:
module.exports = () => ({
autoDetect: true,
// modify `files` automatic configuration settings
files: {
override: (filePatterns) => {
// TODO: modify `filePatterns` array as required
return filePatterns;
}
},
// modify `tests` automatic configuration settings
tests: {
override: (testPatterns) => {
// TODO: modify `testPatterns` array as required
return testPatterns;
}
}
});
Replace automatic configuration files and/or tests You may force Wallaby to completely ignore the files and/or tests properties that are automatically set by Wallaby’s automatic configuration by creating a files or tests property with an array of patterns.
module.exports = () => ({
autoDetect: true,
// modify `files` automatic configuration settings
files: [
"src/**/*.js",
],
// modify `tests` automatic configuration settings
tests: [
"test/**/*.spec.js",
]
});
In your case, you are completely replacing the configuration which may be missing some files that Wallaby needs to successfully run your tests.
Please try removing the files
and tests
sections of your configuration to see if that fixes the problem. If you still need overrides, you may also try to modify the configuration instead of replacing it.
Sorry, I should have mentioned that. I get the same issue whether I allow Wallaby to autoconfig or I pass in a config. Here is diagnostics when I allow Wallaby to figure it out on its own
{
editorVersion: 'IntelliJ IDEA 2021.3 EAP',
pluginVersion: '1.0.225',
editorType: 'IntelliJ',
osVersion: 'darwin 21.1.0',
nodeVersion: 'v14.15.1',
coreVersion: '1.0.1167',
checksum: 'ODA4NjA4OWZlMTAzZTZhNzE2ZjhiNmFjYTg0YTI2MGQsMTY1MTYyMjQwMDAwMCww',
config: {
diagnostics: {
angular: {
workspace: {
version: 1,
projects: {
customer: {
projectType: 'application',
schematics: { ***@***.***/angular:component': { style: 'scss' } },
root: 'apps/customer',
sourceRoot: 'apps/customer/src',
prefix: 'app',
architect: {
build: {
builder: ***@***.***/build-angular:browser',
options: {
outputPath: 'dist/apps/customer',
index: 'apps/customer/src/index.html',
main: 'apps/customer/src/main.ts',
polyfills: 'apps/customer/src/polyfills.ts',
tsConfig: 'apps/customer/tsconfig.app.json',
aot: false,
assets: [
'apps/customer/src/favicon.ico',
'apps/customer/src/assets',
{ glob: '**/*', input: ***@***.***/icons/dist/font', output: '/assets/fonts/jbh-icon' },
{ glob: '**/*', input: 'node_modules/lib-platform-services/src', output: '/assets' },
'apps/customer/src/manifest.webmanifest'
],
styles: [
{ input: ***@***.***/icons/dist/font/jbh-icons.scss', bundleName: 'jbhIcons' },
{ input: 'node_modules/primeng/resources/primeng.min.css', bundleName: 'primengBase' },
{ input: 'apps/customer/src/styles.scss', bundleName: 'globals' }
],
scripts: []
},
configurations: {
production: {
fileReplacements: [ { replace: 'apps/customer/src/environments/environment.ts', with: 'apps/customer/src/environments/environment.prod.ts' } ],
outputHashing: 'all',
sourceMap: false,
extractCss: true,
namedChunks: false,
aot: true,
extractLicenses: true,
vendorChunk: false,
buildOptimizer: true,
budgets: [ { type: 'initial', maximumWarning: '2mb', maximumError: '5mb' }, { type: 'anyComponentStyle', maximumWarning: '6kb', maximumError: '10kb' } ],
serviceWorker: true,
ngswConfigPath: 'apps/customer/ngsw-config.json'
},
securityless: {
fileReplacements: [
{ replace: 'libs/shared/src/lib/shell/app.initializer.ts', with: 'libs/shared/src/lib/testing/mock.initializer.ts' },
{ replace: 'libs/shared/src/lib/services/user.service.ts', with: 'libs/shared/src/lib/testing/mock.nokey.user.service.ts' }
]
}
}
},
serve: {
builder: 'ngx-build-plus:dev-server',
options: { browserTarget: 'customer:build' },
configurations: {
production: { browserTarget: 'customer:build:production' },
securityless: { browserTarget: 'customer:build:securityless', extraWebpackConfig: './apps/customer-e2e/coverage.webpack.js' }
}
},
'extract-i18n': { builder: ***@***.***/build-angular:extract-i18n', options: { browserTarget: 'customer:build' } },
lint: { builder: ***@***.***/linter:eslint', options: { lintFilePatterns: [ 'apps/customer/src/**/*.ts', 'apps/customer/src/**/*.html' ] } },
test: {
builder: ***@***.***/build-angular:karma',
options: {
main: 'apps/customer/src/test.ts',
tsConfig: 'apps/customer/tsconfig.spec.json',
karmaConfig: 'apps/customer/karma.conf.js',
polyfills: 'apps/customer/src/polyfills.ts',
styles: [],
scripts: [],
assets: [ 'apps/customer/src/manifest.webmanifest' ]
}
}
}
},
'customer-e2e': {
root: 'apps/customer-e2e',
sourceRoot: 'apps/customer-e2e/src',
projectType: 'application',
architect: {
e2e: {
builder: ***@***.***/cypress:cypress',
options: { cypressConfig: 'apps/customer-e2e/cypress.json', tsConfig: 'apps/customer-e2e/tsconfig.e2e.json' },
configurations: { securityless: { devServerTarget: 'customer:serve:securityless' }, production: { devServerTarget: 'customer:serve:production' } }
},
lint: { builder: ***@***.***/linter:eslint', options: { lintFilePatterns: [ 'apps/customer-e2e/**/*.{js,ts}' ] } }
}
},
carrier: {
projectType: 'application',
schematics: { ***@***.***/angular:component': { style: 'scss' } },
root: 'apps/carrier',
sourceRoot: 'apps/carrier/src',
prefix: 'app',
architect: {
build: {
builder: ***@***.***/build-angular:browser',
options: {
outputPath: 'dist/apps/carrier',
index: 'apps/carrier/src/index.html',
main: 'apps/carrier/src/main.ts',
polyfills: 'apps/carrier/src/polyfills.ts',
tsConfig: 'apps/carrier/tsconfig.app.json',
aot: false,
assets: [
'apps/carrier/src/favicon.ico',
'apps/carrier/src/assets',
{ glob: '**/*', input: ***@***.***/icons/dist/font', output: '/assets/fonts/jbh-icon' },
{ glob: '**/*', input: 'node_modules/lib-platform-services/src', output: '/assets' },
'apps/carrier/src/manifest.webmanifest'
],
styles: [
{ input: ***@***.***/icons/dist/font/jbh-icons.scss', bundleName: 'jbhIcons' },
{ input: 'node_modules/primeng/resources/primeng.min.css', bundleName: 'primengBase' },
{ input: 'apps/carrier/src/styles.scss', bundleName: 'globals' }
],
scripts: []
},
configurations: {
test: {
fileReplacements: [
{ replace: 'libs/shared/src/lib/shell/app.initializer.ts', with: 'libs/shared/src/lib/testing/mock.initializer.ts' },
{ replace: 'libs/shared/src/lib/services/user.service.ts', with: 'libs/shared/src/lib/testing/mock.nokey.user.service.ts' }
]
},
production: {
fileReplacements: [ { replace: 'apps/carrier/src/environments/environment.ts', with: 'apps/carrier/src/environments/environment.prod.ts' } ],
outputHashing: 'all',
sourceMap: false,
extractCss: true,
namedChunks: false,
aot: true,
extractLicenses: true,
vendorChunk: false,
buildOptimizer: true,
budgets: [ { type: 'initial', maximumWarning: '2mb', maximumError: '5mb' }, { type: 'anyComponentStyle', maximumWarning: '6kb', maximumError: '10kb' } ],
serviceWorker: true,
ngswConfigPath: 'apps/carrier/ngsw-config.json'
}
}
},
serve: {
builder: ***@***.***/build-angular:dev-server',
options: { browserTarget: 'carrier:build' },
configurations: { production: { browserTarget: 'carrier:build:production' } }
},
'extract-i18n': { builder: ***@***.***/build-angular:extract-i18n', options: { browserTarget: 'carrier:build' } },
lint: { builder: ***@***.***/linter:eslint', options: { lintFilePatterns: [ 'apps/carrier/src/**/*.ts', 'apps/carrier/src/**/*.html' ] } },
test: {
builder: ***@***.***/build-angular:karma',
options: {
main: 'apps/carrier/src/test.ts',
tsConfig: 'apps/carrier/tsconfig.spec.json',
karmaConfig: 'apps/carrier/karma.conf.js',
polyfills: 'apps/carrier/src/polyfills.ts',
styles: [],
scripts: [],
assets: [ 'apps/carrier/src/manifest.webmanifest' ],
fileReplacements: [
{ replace: 'libs/shared/src/lib/shell/app.initializer.ts', with: 'libs/shared/src/lib/testing/mock.initializer.ts' },
{ replace: 'libs/shared/src/lib/services/user.service.ts', with: 'libs/shared/src/lib/testing/mock.nokey.user.service.ts' }
]
}
}
}
},
'carrier-e2e': {
root: 'apps/carrier-e2e',
sourceRoot: 'apps/carrier-e2e/src',
projectType: 'application',
architect: {
e2e: {
builder: ***@***.***/cypress:cypress',
options: { cypressConfig: 'apps/carrier-e2e/cypress.json', tsConfig: 'apps/carrier-e2e/tsconfig.e2e.json', devServerTarget: 'carrier:serve' },
configurations: { local: { devServerTarget: 'customer:serve' }, production: { devServerTarget: 'carrier:serve:production' } }
},
lint: { builder: ***@***.***/linter:eslint', options: { lintFilePatterns: [ 'apps/customer-e2e/**/*.{js,ts}' ] } }
}
},
shared: {
projectType: 'library',
root: 'libs/shared',
sourceRoot: 'libs/shared/src',
prefix: 'app',
architect: {
lint: { builder: ***@***.***/linter:eslint', options: { lintFilePatterns: [ 'libs/shared/src/**/*.ts', 'libs/shared/src/**/*.html' ] } },
test: {
builder: ***@***.***/build-angular:karma',
options: { main: 'libs/shared/src/test.ts', tsConfig: 'libs/shared/tsconfig.spec.json', karmaConfig: 'libs/shared/karma.conf.js' }
}
},
schematics: { ***@***.***/angular:component': { styleext: 'scss' } }
}
},
cli: { defaultCollection: ***@***.***/angular' },
schematics: {
***@***.***/angular': { application: { linter: 'eslint' }, library: { linter: 'eslint' }, 'storybook-configuration': { linter: 'eslint' } },
***@***.***/angular:application': { unitTestRunner: 'karma', e2eTestRunner: 'cypress' },
***@***.***/angular:library': { unitTestRunner: 'karma' },
***@***.***/angular:component': { style: 'scss' }
},
defaultProject: 'customer'
},
tsConfig: ***@***.******@***.******@***.******@***.******@***.****":["./libs/shared/src/lib/testing*"]},"types":["jasmine","node"]},"angularCompilerOptions":{"fullTemplateTypeCheck":true,"strictInjectionParameters":true},"exclude":["node_modules","tmp","./libs/shared/src/lib/testing*","./apps/customer/src/environments/environment.prod.ts"],"files":["apps/customer/src/test.ts","apps/customer/src/polyfills.ts","apps/carrier/src/test.ts","apps/carrier/src/polyfills.ts","libs/shared/src/test.ts"],"include":["apps/customer/**/*.spec.ts","apps/customer/**/*.d.ts","apps/carrier/**/*.spec.ts","apps/carrier/**/*.d.ts","libs/shared/**/*.spec.ts","libs/shared/**/*.d.ts"]}',
polyfill: {
path: '<homeDir>/Projects/app_pricing_ui/wallaby-polyfills.js',
code: ***@***.***/build-angular/src/angular-cli-files/models/jit-polyfills.js');\n" +
"require('<homeDir>/Projects/app_pricing_ui/apps/customer/src/polyfills.ts');"
},
main: [
{
path: '<homeDir>/Projects/app_pricing_ui/apps/customer/src/test.ts',
code: '// This file is required by karma.conf.js and loads recursively all the .spec and framework files\n' +
'\n' +
"import 'core-js/es7/reflect';\n" +
"import 'zone.js/dist/zone';\n" +
"import 'zone.js/dist/zone-testing';\n" +
'import {\n' +
' BrowserDynamicTestingModule,\n' +
' platformBrowserDynamicTesting,\n' +
"} from ***@***.***/platform-browser-dynamic/testing';\n" +
"import { getTestBed } from ***@***.***/core/testing';\n" +
"import { loadTranslations } from ***@***.***/localize';\n" +
'\n' +
'// eslint-disable-next-line\n' +
'declare const require: any;\n' +
'\n' +
'// Load `$localize` onto the global scope.\n' +
"import ***@***.***/localize/init';\n" +
"import translations from '../../../messages.en';\n" +
'\n' +
'// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n' +
'loadTranslations(translations);\n' +
'\n' +
'// First, initialize the Angular testing environment.\n' +
'getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());\n' +
'\n' +
'// Then we find all the tests.\n' +
'// eslint-disable-next-line\n' +
'\n' +
'\n' +
'// And load the modules.\n' +
'// eslint-disable-next-line\n' +
'\n'
},
{
path: '<homeDir>/Projects/app_pricing_ui/apps/carrier/src/test.ts',
code: '// This file is required by karma.conf.js and loads recursively all the .spec and framework files\n' +
'\n' +
"import 'core-js/es7/reflect';\n" +
'\n' +
'\n' +
'\n' +
'\n' +
"import { loadTranslations } from ***@***.***/localize';\n" +
'\n' +
'// eslint-disable-next-line\n' +
'\n' +
'\n' +
'// Load `$localize` onto the global scope.\n' +
"import ***@***.***/localize/init';\n" +
"import translations from '../../../messages.en';\n" +
'\n' +
'// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n' +
'loadTranslations(translations);\n' +
'\n' +
'// First, initialize the Angular testing environment.\n' +
'\n' +
'\n' +
'// Then we find all the tests.\n' +
'// eslint-disable-next-line\n' +
'\n' +
'\n' +
'// And load the modules.\n' +
'// eslint-disable-next-line\n' +
'\n'
},
{
path: '<homeDir>/Projects/app_pricing_ui/libs/shared/src/test.ts',
code: '// This file is required by karma.conf.js and loads recursively all the .spec and framework files\n' +
'\n' +
"import 'core-js/es7/reflect';\n" +
'\n' +
'\n' +
'\n' +
'\n' +
"import { loadTranslations } from ***@***.***/localize';\n" +
'\n' +
'// eslint-disable-next-line\n' +
'\n' +
'\n' +
'// Load `$localize` onto the global scope.\n' +
"import ***@***.***/localize/init';\n" +
"import translations from '../../../messages.en';\n" +
'\n' +
'// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n' +
'loadTranslations(translations);\n' +
'\n' +
'// First, initialize the Angular testing environment.\n' +
'\n' +
'\n' +
'// Then we find all the tests.\n' +
'// eslint-disable-next-line\n' +
'\n' +
'\n' +
'// And load the modules.\n' +
'// eslint-disable-next-line\n' +
'\n'
}
]
}
},
testFramework: { version: ***@***.***', configurator: ***@***.***', reporter: ***@***.***', starter: ***@***.***', autoDetected: true },
env: { kind: 'chrome', type: 'browser', params: {}, viewportSize: { width: 800, height: 600 }, options: { width: 800, height: 600 }, bundle: true },
files: [
{ pattern: 'apps/customer/src/polyfills.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/test.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/main.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/index.html', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/test.base.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/test.wallaby.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/**/*.spec.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/customer/src/**/*.+(ts|js)', load: false, ignore: false, trigger: true, order: 1 },
{ pattern: 'apps/customer/src/**/*.+(css|less|scss|sass|styl|html|json|svg)', instrument: false, load: false, ignore: false, trigger: true, order: 2 },
{ pattern: 'apps/carrier/src/polyfills.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/test.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/main.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/index.html', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/test.base.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/test.wallaby.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/**/*.spec.ts', ignore: true, trigger: true, load: true },
{ pattern: 'apps/carrier/src/**/*.+(ts|js)', load: false, ignore: false, trigger: true, order: 3 },
{ pattern: 'apps/carrier/src/**/*.+(css|less|scss|sass|styl|html|json|svg)', instrument: false, load: false, ignore: false, trigger: true, order: 4 },
{ pattern: 'libs/shared/src/test.ts', ignore: true, trigger: true, load: true },
{ pattern: 'libs/shared/src/test.base.ts', ignore: true, trigger: true, load: true },
{ pattern: 'libs/shared/src/test.wallaby.ts', ignore: true, trigger: true, load: true },
{ pattern: 'libs/shared/src/**/*.spec.ts', ignore: true, trigger: true, load: true },
{ pattern: 'libs/shared/src/**/*.+(ts|js)', load: false, ignore: false, trigger: true, order: 5 },
{ pattern: 'libs/shared/src/**/*.+(css|less|scss|sass|styl|html|json|svg)', instrument: false, load: false, ignore: false, trigger: true, order: 6 }
],
tests: [
{ pattern: 'apps/customer/src/**/*.spec.ts', load: false, ignore: false, trigger: true, test: true, order: 7 },
{ pattern: 'apps/carrier/src/**/*.spec.ts', load: false, ignore: false, trigger: true, test: true, order: 8 },
{ pattern: 'libs/shared/src/**/*.spec.ts', load: false, ignore: false, trigger: true, test: true, order: 9 }
],
filesWithNoCoverageCalculated: [],
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: {},
reportUnhandledPromises: false,
throwOnBeforeUnload: true,
slowTestThreshold: 75,
lowCoverageThreshold: 80,
loose: true,
configCode: 'auto.detect#-314213469'
},
packageJSON: {
dependencies: {
***@***.***/animations': '9.1.0',
***@***.***/cdk': '^8.2.3',
***@***.***/cli': '^9.1.0',
***@***.***/common': '9.1.0',
***@***.***/compiler': '9.1.0',
***@***.***/core': '9.1.0',
***@***.***/forms': '9.1.0',
***@***.***/localize': '9.1.0',
***@***.***/platform-browser': '9.1.0',
***@***.***/platform-browser-dynamic': '9.1.0',
***@***.***/pwa': '^0.901.15',
***@***.***/router': '9.1.0',
***@***.***/service-worker': '9.1.0',
***@***.***/storage-blob': '^10.3.0',
***@***.***/core': '^5.6.0',
***@***.***/primeng-theme': '6.5.0',
***@***.***/effects': '^9.2.1',
***@***.***/entity': '^9.2.1',
***@***.***/router-store': '^9.2.1',
***@***.***/schematics': '^9.2.1',
***@***.***/store': '^9.2.1',
***@***.***/store-devtools': '^9.2.1',
***@***.***/angular': '9.8.0',
***@***.***/angular': '^12.1.1',
***@***.***/lodash': '^4.14.149',
***@***.***/rox-browser': '^5.0.1',
'babel-polyfill': '^6.26.0',
'chart.js': '^2.8.0',
'classlist.js': '^1.1.20150312',
'core-js': '^2.5.4',
'editor.js': '^0.1.0',
'file-saver': '^1.3.8',
'http-status-codes': '^1.4.0',
immer: '^6.0.3',
'keycloak-angular': '^7.1.0',
'keycloak-js': '^9.0.0',
'lib-platform-components': '8.0.15',
'lib-platform-services': '8.0.13',
lodash: '^4.17.15',
mammoth: '^1.4.9',
moment: '^2.24.0',
'moment-range': '^4.0.2',
'moment-timezone': '^0.5.28',
'ng-lint-staged': '^0.1.6',
'ng2-currency-mask': '^5.3.1',
'ng2-pdf-viewer': '6.4.1',
'ngx-bootstrap': '^5.6.1',
'ngx-cacheable': '^1.4.1',
'ngx-drag-scroll': '^7.3.4',
'ngx-hotjar': '^0.0.5',
'ngx-perfect-scrollbar': '^7.2.1',
'ngx-quill': '^7.3.4',
'postcss-custom-properties': '^9.1.1',
primeflex: '^1.0.0',
primeng: '^9.1.0',
quill: '^1.3.7',
'rox-browser': '^5.0.0',
rxjs: '6.5.5',
tslib: '^1.10.0',
underscore: '^1.9.1',
uuid: '^3.4.0',
xlsx: '^0.15.6',
'zone.js': '^0.9.1'
},
devDependencies: {
***@***.***/custom-webpack': '9.2.0',
***@***.***/build-angular': '0.901.0',
***@***.***/builder': '^12.3.1',
***@***.***/eslint-plugin': '12.3.1',
***@***.***/eslint-plugin-template': '12.3.1',
***@***.***/template-parser': '12.3.1',
***@***.***/compiler-cli': '9.1.0',
***@***.***/language-service': '9.1.0',
***@***.***/hmr': '^2.1.3',
***@***.***/compat-data': '7.8.0',
***@***.***/core': '^7.6.4',
***@***.***/code-coverage': '^3.9.10',
***@***.***/nyc-config-typescript': '^1.0.1',
***@***.***/mc2ng': '^0.3.0',
***@***.***/cli': '12.0.7',
***@***.***/cypress': '12.0.7',
***@***.***/eslint-plugin-nx': '12.0.7',
***@***.***/linter': '12.0.7',
***@***.***/tao': '12.0.7',
***@***.***/workspace': '12.0.7',
***@***.***/file-saver': '^2.0.3',
***@***.***/jasmine': '~3.8.1',
***@***.***/jasminewd2': '^2.0.10',
***@***.***/moment': '^2.13.0',
***@***.***/moment-timezone': '~0.5.30',
***@***.***/node': '~16.4.0',
***@***.***/uuid': '^8.3.1',
***@***.***/eslint-plugin': '^4.28.4',
***@***.***/eslint-plugin-tslint': '^4.28.4',
***@***.***/parser': '^4.28.4',
***@***.***/typescript-estree': '^4.28.4',
'babel-loader': '^8.0.6',
buffer: '^5.4.3',
codelyzer: '6.0.1',
cypress: '^8.2.0',
'cypress-file-upload': '^4.1.1',
dotenv: '6.2.0',
eslint: '^7.31.0',
'eslint-config-prettier': '8.3.0',
'eslint-import-resolver-typescript': '^2.4.0',
'eslint-import-resolver-webpack': '^0.13.1',
'eslint-plugin-cypress': '^2.11.3',
'eslint-plugin-i18next': '^5.1.2',
'eslint-plugin-jasmine': '^4.1.2',
'eslint-plugin-jsdoc': '^35.5.1',
'eslint-plugin-prefer-arrow': '^1.2.3',
'eslint-plugin-prettier': '^3.4.0',
'eslint-plugin-sort-imports-es6-autofix': '^0.6.0',
htmlhint: '^0.15.1',
'istanbul-instrumenter-loader': '^3.0.1',
'istanbul-lib-coverage': '^3.0.0',
'jasmine-core': '~2.99.1',
'jasmine-spec-reporter': '5.0.2',
karma: '~4.0.0',
'karma-chrome-launcher': '3.1.0',
'karma-coverage': '^2.0.1',
'karma-coverage-istanbul-reporter': '3.0.3',
'karma-jasmine': '~1.1.2',
'karma-jasmine-html-reporter': '^0.2.2',
'lint-staged': '^10.5.4',
'ng-mocks': '^8.1.0',
'ngx-build-plus': '^9.0.6',
npm: '~6.10.0',
nyc: '15.1.0',
prettier: '^2.3.2',
'prettier-eslint-cli': '^5.0.1',
process: '^0.11.10',
protractor: '7.0.0',
'simple-git-hooks': '^2.2.0',
'source-map-support': '^0.5.19',
stylelint: '^13.13.1',
'stylelint-config-prettier': '^8.0.2',
'stylelint-config-sass-guidelines': '^8.0.0',
'stylelint-config-standard-scss': '^1.1.0',
'stylelint-no-unused-selectors': '^1.0.39',
'stylelint-order': '^4.1.0',
'ts-node': '~7.0.0',
tslint: '^5.20.1',
'tslint-config-airbnb': '^5.11.2',
'tslint-config-prettier': '^1.18.0',
'tslint-jasmine-rules': '^1.6.0',
'tslint-lines-between-class-members': '^1.3.6',
typescript: '3.8.3',
url: '^0.11.0'
}
},
fs: { numberOfFiles: 3380 },
debug: [
'2021-10-19T22:20:41.977Z angular/cli config Detected Angular CLI.\n',
'2021-10-19T22:20:43.794Z angular/cli karma workspace config Using virtual <homeDir>/Projects/app_pricing_ui/apps/customer/src/test.ts.\n',
'2021-10-19T22:20:43.794Z angular/cli karma workspace config Using virtual <homeDir>/Projects/app_pricing_ui/apps/carrier/src/test.ts.\n',
'2021-10-19T22:20:43.795Z angular/cli karma workspace config Using virtual <homeDir>/Projects/app_pricing_ui/libs/shared/src/test.ts.\n',
'2021-10-19T22:20:43.795Z angular/cli karma workspace config Using virtual <homeDir>/Projects/app_pricing_ui/tsconfig.wallaby.spec.json.\n',
'2021-10-19T22:20:44.255Z project Wallaby Node version: v14.15.1\n',
'2021-10-19T22:20:44.255Z project Wallaby config: <homeDir>/Projects/app_pricing_ui/auto.detect\n',
'2021-10-19T22:20:46.947Z fs File system scan has finished by timeout\n',
'2021-10-19T22:20:46.972Z project File cache: <homeDir>/Library/Caches/JetBrains/IntelliJIdea2021.3/wallaby/projects/b82d1a51fdad6693\n',
'2021-10-19T22:20:47.040Z uiService Listening port 51235\n',
'2021-10-19T22:20:47.042Z project package.json file change detected, invalidating local cache\n',
'2021-10-19T22:20:47.198Z workers Parallelism for initial run: 14, for regular run: 7\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #0\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #1\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #2\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #3\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #4\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #5\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #6\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #7\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #8\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #9\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #10\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #11\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #12\n',
'2021-10-19T22:20:47.199Z workers Starting run worker instance #13\n',
'2021-10-19T22:20:47.201Z workers Web server is listening at 58389\n',
'2021-10-19T22:20:47.210Z project Stopping process pool\n',
'2021-10-19T22:20:47.210Z project File cache is up-to-date, starting full test run\n',
'2021-10-19T22:20:47.219Z project Running postprocessor\n',
'2021-10-19T22:20:47.277Z postprocessor Processing started.\n',
'2021-10-19T22:20:47.277Z postprocessor Initializing.\n',
'2021-10-19T22:20:47.280Z postprocessor Initializing entry.\n',
'2021-10-19T22:20:47.281Z postprocessor Sanitizing configuration.\n',
'2021-10-19T22:20:47.281Z postprocessor Adjusting configuration.\n',
'2021-10-19T22:20:47.282Z postprocessor Creating compiler.\n',
'2021-10-19T22:20:47.364Z postprocessor Customizing compiler.\n',
'2021-10-19T22:20:47.364Z postprocessor Compilation started.\n',
'2021-10-19T22:20:48.101Z workers Started run worker instance (immediate) #0\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #1\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #2\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #3\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #4\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #5\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #6\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #7\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #8\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #9\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #10\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #11\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #12\n',
'2021-10-19T22:20:48.102Z workers Started run worker instance (immediate) #13\n',
'2021-10-19T22:20:51.642Z project Error: ./src/test.ts 14:8\n' +
'Module parse failed: Unexpected token (14:8)\n' +
'File was processed with these loaders:\n' +
' * ./wallaby-loader\n' +
'You may need an additional loader to handle the result of these loaders.\n' +
'| \n' +
'| // eslint-disable-next-line\n' +
'> declare const require: any;\n' +
'| \n' +
'| // Load `$localize` onto the global scope.\n' +
' @ <homeDir>/Projects/app_pricing_ui/wallaby-webpack-entry.js 2:0-73\n' +
' at t.<anonymous> (<homeDir>/Library/Caches/JetBrains/IntelliJIdea2021.3/wallaby/wallaby/server.js:22:8155)\n' +
' at n (<homeDir>/Library/Caches/JetBrains/IntelliJIdea2021.3/wallaby/wallaby/server.js:22:4546)\n' +
' at Object.next (<homeDir>/Library/Caches/JetBrains/IntelliJIdea2021.3/wallaby/wallaby/server.js:22:3841)\n' +
' at o (<homeDir>/Library/Caches/JetBrains/IntelliJIdea2021.3/wallaby/wallaby/server.js:22:3600)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:93:5)\n',
'2021-10-19T22:20:51.643Z project Test run finished\n',
'2021-10-19T22:20:51.643Z project Test run data re-queued\n'
]
}
On Oct 19, 2021, 5:19 PM -0500, Simon McEnlly @.***>, wrote:
I can see from your diagnostics report that you are explicitly setting the files and tests sections for your project: wallaby.js configuration module.exports = function (wallaby) {
return {
autoDetect: true,
files: [
'libs/shared/src/**/*.ts', 'apps/carrier/src/**/*.ts', 'apps/customer/src/**/*.ts', { pattern: 'libs/shared/src/**/*spec.ts', ignore: true }, { pattern: 'apps/carrier/src/**/*spec.ts', ignore: true }, { pattern: 'apps/customer/src/**/*spec.ts', ignore: true },
],
tests: [
'libs/shared/src/**/*spec.ts', 'apps/carrier/src/**/*spec.ts', 'apps/customer/src/**/*spec.ts',
],
};
}; Is there a reason for you doing this? This may be the cause of your problem. For projects that use automatic configuration, your files and tests properties will be automatically set based on your project’s configuration. There are two ways to configure different or additional files and tests when using automatic configuration: Modify automatic configuration files and/or tests You may modify the files and/or tests properties that are automatically set by Wallaby’s automatic configuration by creating a files or tests property with an object containing an override function: module.exports = () => ({
autoDetect: true,
// modify
files
automatic configuration settingsfiles: {
override: (filePatterns) => {
// TODO: modify `filePatterns` array as required return filePatterns;
}
},
// modify
tests
automatic configuration settingstests: {
override: (testPatterns) => {
// TODO: modify `testPatterns` array as required return testPatterns;
}
}
}); Replace automatic configuration files and/or tests You may force Wallaby to completely ignore the files and/or tests properties that are automatically set by Wallaby’s automatic configuration by creating a files or tests property with an array of patterns. module.exports = () => ({
autoDetect: true,
// modify
files
automatic configuration settingsfiles: [
"src/*/.js",
],
// modify
tests
automatic configuration settingstests: [
"test/*/.spec.js",
]
}); In your case, you are completely replacing the configuration which may be missing some files that Wallaby needs to successfully run your tests. Please try removing the files and tests sections of your configuration to see if that fixes the problem. If you still need overrides, you may also try to modify the configuration instead of replacing it. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
One more thing I wanted to check... can you please check that the tests are passing when run from the command line with ng test
?
They’re not passing, but they are running On Oct 19, 2021, 6:36 PM -0500, Simon McEnlly @.***>, wrote:
One more thing I wanted to check... can you please check that the tests are passing when run from the command line with ng test? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi @sdrowe,
Thanks for reporting the issue. It is fixed and the fix is published in the latest core version.
Issue description or question
Wallaby diagnostics report