Closed melshaabiny closed 1 year ago
Hello, the auto configuration should work for your project setup. Can you please delete your manual config, run auto configuration and paste your Wallaby Diagnostics report so we can see why auto configuration is not working for you?
This is the error I get when I remove the config file and use Auto Configuration
Report:
{
editorVersion: '1.78.2',
pluginVersion: '1.0.355',
editorType: 'VSCode',
osVersion: 'linux 5.15.90.1-microsoft-standard-WSL2',
nodeVersion: 'v14.17.4',
coreVersion: '1.0.1423',
config: {
diagnostics: {
jest: {
config: {
configs: [
{
automock: false,
cache: true,
cacheDirectory: '/tmp/jest_rs',
clearMocks: false,
coveragePathIgnorePatterns: [ '/node_modules/' ],
cwd: '<homeDir>/git/ratings-app',
dependencyExtractor: undefined,
detectLeaks: false,
detectOpenHandles: false,
displayName: undefined,
errorOnDeprecated: false,
extensionsToTreatAsEsm: [ '.ts' ],
extraGlobals: [],
filter: undefined,
forceCoverageMatch: [],
globalSetup: '<homeDir>/git/ratings-app/tests/setup.ts',
globalTeardown: '<homeDir>/git/ratings-app/tests/teardown.ts',
globals: { 'ts-jest': { diagnostics: { warnOnly: true } } },
haste: { computeSha1: false, enableSymlinks: false, forceNodeFilesystemAPI: false, throwOnModuleCollision: false },
injectGlobals: true,
moduleDirectories: [ 'node_modules', 'tests', 'src' ],
moduleFileExtensions: [ 'js', 'jsx', 'ts', 'tsx', 'json', 'node' ],
moduleLoader: undefined,
moduleNameMapper: [ [ '\\.css$', '<homeDir>/git/ratings-app/src/__mocks__/css.ts' ], [ '\\.(svg|png|gif|jpg|jpeg)$', '<homeDir>/git/ratings-app/src/__mocks__/img.ts' ] ],
modulePathIgnorePatterns: [],
modulePaths: undefined,
name: '4756db04e6176cf375bd72fa3fad26c6',
prettierPath: 'prettier',
resetMocks: false,
resetModules: false,
resolver: undefined,
restoreMocks: false,
rootDir: '<homeDir>/git/ratings-app',
roots: [ '<homeDir>/git/ratings-app' ],
runner: '<homeDir>/git/ratings-app/node_modules/jest-runner/build/index.js',
setupFiles: [ '<homeDir>/git/ratings-app/tests/jest-setup-env.ts' ],
setupFilesAfterEnv: [],
skipFilter: false,
skipNodeResolution: undefined,
slowTestThreshold: 5,
snapshotFormat: undefined,
snapshotResolver: undefined,
snapshotSerializers: [],
testEnvironment: '<homeDir>/git/ratings-app/node_modules/jest-environment-node/build/index.js',
testEnvironmentOptions: {},
testLocationInResults: false,
testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
testPathIgnorePatterns: [ '/node_modules/', '<homeDir>/git/ratings-app/tests/e2e/' ],
testRegex: [],
testRunner: '<homeDir>/git/ratings-app/node_modules/jest-circus/runner.js',
testURL: 'http://localhost',
timers: 'real',
transform: [ [ '^.+\\.tsx?$', '<homeDir>/git/ratings-app/node_modules/ts-jest/dist/index.js', {} ] ],
transformIgnorePatterns: [ '/node_modules/', '\\.pnp\\.[^\\/]+$' ],
unmockedModulePathPatterns: undefined,
watchPathIgnorePatterns: []
}
],
globalConfig: {
bail: 0,
changedFilesWithAncestor: false,
changedSince: undefined,
collectCoverage: false,
collectCoverageFrom: [],
collectCoverageOnlyFrom: undefined,
coverageDirectory: '<homeDir>/git/ratings-app/coverage',
coverageProvider: 'babel',
coverageReporters: [ 'json', 'text', 'lcov', 'clover' ],
coverageThreshold: undefined,
detectLeaks: false,
detectOpenHandles: false,
errorOnDeprecated: false,
expand: false,
filter: undefined,
findRelatedTests: false,
forceExit: false,
globalSetup: '<homeDir>/git/ratings-app/tests/setup.ts',
globalTeardown: '<homeDir>/git/ratings-app/tests/teardown.ts',
json: false,
lastCommit: false,
listTests: false,
logHeapUsage: false,
maxConcurrency: 5,
maxWorkers: 11,
noSCM: undefined,
noStackTrace: false,
nonFlagArgs: undefined,
notify: false,
notifyMode: 'failure-change',
onlyChanged: false,
onlyFailures: false,
outputFile: undefined,
passWithNoTests: false,
projects: [],
replname: undefined,
reporters: undefined,
rootDir: '<homeDir>/git/ratings-app',
runTestsByPath: false,
silent: undefined,
skipFilter: false,
snapshotFormat: undefined,
testFailureExitCode: 1,
testNamePattern: undefined,
testPathPattern: '',
testResultsProcessor: undefined,
testSequencer: '<homeDir>/git/ratings-app/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: [],
watchPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/', '/tmp/jest_rs', '\\./tests/e2e/', '\\./coverage' ],
testPathIgnorePatterns: [ '/node_modules/', '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/', '/tmp/jest_rs', '\\./tests/e2e/', '\\./coverage' ],
testMatch: [ '**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)' ],
testRegex: []
}
}
}
},
testFramework: { version: 'jest@24.8.0', configurator: 'jest@24.8.0', reporter: 'jest@24.8.0', starter: 'jest@24.8.0', autoDetected: true },
filesWithCoverageCalculated: [],
filesWithNoCoverageCalculated: [],
globalSetup: true,
dot: true,
files: [
{ pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, file: true, test: true },
{
pattern: '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/',
regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\.\/git\/|\/\..+\//,
ignore: true,
trigger: true,
load: true,
file: true,
test: true
},
{ pattern: '/tmp/jest_rs', regexp: /\/tmp\/jest_rs/, ignore: true, trigger: true, load: true, file: true, test: true },
{ pattern: '\\./tests/e2e/', regexp: /\.\/tests\/e2e\//, ignore: true, trigger: true, load: true, file: true, test: true },
{ pattern: '\\./coverage', regexp: /\.\/coverage/, ignore: true, trigger: true, load: true, file: true, test: true },
{ pattern: '**/**', ignore: false, trigger: true, load: true, order: 1 },
{ pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: true, trigger: true, load: true, file: true },
{ pattern: '**/?(*.)+(spec|test).[tj]s?(x)', ignore: true, trigger: true, load: true, file: true }
],
captureConsoleLog: true,
tests: [
{ pattern: '/node_modules/', regexp: /\/node_modules\//, ignore: true, trigger: true, load: true, test: true, file: false },
{
pattern: '\\./dist/|\\./build/|\\./coverage/|\\./git/|/\\..+/',
regexp: /\.\/dist\/|\.\/build\/|\.\/coverage\/|\.\/git\/|\/\..+\//,
ignore: true,
trigger: true,
load: true,
test: true,
file: false
},
{ pattern: '/tmp/jest_rs', regexp: /\/tmp\/jest_rs/, ignore: true, trigger: true, load: true, test: true, file: false },
{ pattern: '\\./tests/e2e/', regexp: /\.\/tests\/e2e\//, ignore: true, trigger: true, load: true, test: true, file: false },
{ pattern: '\\./coverage', regexp: /\.\/coverage/, ignore: true, trigger: true, load: true, test: true, file: false },
{ pattern: '**/__tests__/**/*.[jt]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 2 },
{ pattern: '**/?(*.)+(spec|test).[tj]s?(x)', ignore: false, trigger: true, load: true, test: true, order: 3 }
],
runAllTestsInAffectedTestFile: false,
updateNoMoreThanOneSnapshotPerTestFileRun: false,
compilers: {},
logLimits: { inline: { depth: 5, elements: 5000 }, values: { default: { stringLength: 200 }, autoExpand: { elements: 5000, stringLength: 8192, depth: 10 } } },
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|c8 ignore/',
ignoreCoverageForFile: '__REGEXP /ignore file coverage/',
commentAutoLog: '?',
testFileSelection: { include: '__REGEXP /file\\.only/', exclude: '__REGEXP /file\\.skip/' }
},
automaticTestFileSelection: true,
runSelectedTestsOnly: false,
mapConsoleMessagesStackTrace: false,
extensions: {},
env: {
type: 'node',
params: {},
runner: '<homeDir>/.nvm/versions/node/v14.17.4/bin/node',
viewportSize: { width: 800, height: 600 },
options: { width: 800, height: 600 },
bundle: true
},
reportUnhandledPromises: true,
slowTestThreshold: 75,
lowCoverageThreshold: 80,
runAllTestsWhenNoAffectedTests: false,
configCode: 'auto.detect#-949341348'
},
packageJSON: {
dependencies: {
'@auth0/auth0-react': '^1.4.0',
'@fortawesome/fontawesome-svg-core': '^1.2.30',
'@fortawesome/free-brands-svg-icons': '^5.14.0',
'@fortawesome/free-regular-svg-icons': '^5.14.0',
'@fortawesome/free-solid-svg-icons': '^5.15.1',
'@fortawesome/react-fontawesome': '^0.1.11',
'@fullcalendar/bootstrap': '5.7.2',
'@fullcalendar/daygrid': '5.7.2',
'@fullcalendar/interaction': '5.7.2',
'@fullcalendar/list': '5.7.2',
'@fullcalendar/react': '5.7.2',
'@fullcalendar/timegrid': '5.7.2',
'@headlessui/react': '^1.6.5',
'@heroicons/react': '^2.0.0',
'@loadable/component': '^5.13.2',
'@sequelize/core': '^7.0.0-alpha.14',
'@types/async': '^3.2.16',
'@types/cfenv': '^1.2.0',
async: '^3.2.4',
axios: '^0.21.1',
'axios-oauth-client': '^1.4.1',
'axios-token-interceptor': '^0.2.0',
bootstrap: '^4.5.3',
cfenv: '^1.2.4',
'chart.js': '^2.9.3',
classnames: '^2.2.6',
'cls-hooked': '^4.2.2',
'csv-parse': '^5.3.3',
dompurify: '^2.3.10',
echarts: '^4.9.0',
'echarts-for-react': '^2.0.16',
'element-resize-event': '^3.0.3',
'emoji-mart': '^3.0.0',
express: '4.17.1',
'express-fileupload': '^1.4.0',
'express-list-endpoints': '^5.0.0',
formik: '^2.2.5',
'fuse.js': '^6.4.3',
'ibm-cos-sdk': '^1.10.0',
'iframe-resizer': '^4.3.2',
'iframe-resizer-react': '^1.1.0',
is_js: '^0.9.0',
leaflet: '^1.7.1',
'leaflet.markercluster': '^1.4.1',
'leaflet.tilelayer.colorfilter': '^1.2.5',
lodash: '^4.17.20',
mathjs: '^10.4.1',
moment: '^2.29.1',
pg: '^8.5.1',
plyr: '^3.6.2',
'prism-react-renderer': '^0.1.7',
'prop-types': '^15.8.1',
qs: '^6.7.0',
'razzle-plugin-svg-react-component': 'https://github.com/finmavis/razzle-plugin-svg-react-component',
react: '^17.0.0',
'react-accessible-accordion': '^3.3.5',
'react-beautiful-dnd': '^13.0.0',
'react-bootstrap': '^1.4.0',
'react-chartjs-2': '^2.10.0',
'react-countup': '^4.3.3',
'react-datepicker': '^4.2.1',
'react-datetime': '^2.16.3',
'react-dom': '^17.0.0',
'react-dropzone': '^10.2.2',
'react-es6-progressbar.js': '^1.1.0',
'react-google-charts': '^3.0.15',
'react-gtm-module': '^2.0.11',
'react-hook-form': '^6.13.1',
'react-image-lightbox': '^5.1.1',
'react-leaflet': '^2.7.0',
'react-live': '^2.2.2',
'react-number-format': '^5.0.0-beta.5',
'react-responsive': '^8.2.0',
'react-router-dom': '5.1.2',
'react-scroll': '^1.8.1',
'react-scrollbars-custom': '^4.0.25',
'react-select': '^5.7.0',
'react-switch': '^6.0.0',
'react-toastify': '^5.5.0',
reactstrap: '^8.7.1',
'sequelize-typescript': '^2.1.3',
'slick-carousel': '^1.8.1',
'styled-components': '^5.2.1',
'ts-node': '^10.0.0',
uuid: '^3.4.0'
},
devDependencies: {
'@babel/core': '^7.18.5',
'@babel/preset-typescript': '^7.16.7',
'@playwright/test': '^1.28.1',
'@storybook/addon-a11y': '^6.5.9',
'@storybook/addon-actions': '^6.5.9',
'@storybook/addon-essentials': '^6.5.9',
'@storybook/addon-interactions': '^6.5.9',
'@storybook/addon-links': '^6.5.9',
'@storybook/addon-postcss': '^2.0.0',
'@storybook/builder-webpack4': '^6.5.9',
'@storybook/manager-webpack4': '^6.5.9',
'@storybook/react': '^6.5.9',
'@storybook/test-runner': '^0.3.0',
'@storybook/testing-library': '^0.0.13',
'@svgr/webpack': '^5.5.0',
'@tailwindcss/forms': '^0.5.2',
'@testing-library/dom': '^8.11.3',
'@testing-library/jest-dom': '^5.16.2',
'@testing-library/react': '^12.1.2',
'@testing-library/user-event': '^14.1.1',
'@types/axios-token-interceptor': '^0.2.1',
'@types/express': '^4.17.9',
'@types/jest': '^27.4.1',
'@types/node': '^16.14.2',
'@types/pg': '^7.14.6',
'@types/react': '^17.0.0',
'@types/react-dom': '^17.0.0',
'@types/react-router-dom': '^5.1.7',
'@types/styled-components': '^5.1.7',
'@types/uuid': '^8.3.0',
'@types/validator': '^13.7.1',
'@types/webpack-env': '^1.15.3',
'@typescript-eslint/eslint-plugin': '^4.14.1',
'@typescript-eslint/parser': '^4.14.1',
autoprefixer: '^10.4.7',
'axe-playwright': '^1.1.11',
'babel-loader': '^8.2.5',
'babel-plugin-styled-components': '^1.12.0',
'browser-sync': '^2.26.12',
chokidar: '^3.5.3',
eslint: '^7.32.0',
'eslint-config-react-app': '^6.0.0',
'eslint-plugin-import': '^2.22.1',
'eslint-plugin-jest': '^24.7.0',
'eslint-plugin-node': '^11.1.0',
'eslint-plugin-playwright': '^0.9.0',
'eslint-plugin-react': '^7.22.0',
'eslint-plugin-react-hooks': '^4.5.0',
'html-webpack-plugin': '^4.5.2',
jest: '^27.4.2',
'jest-junit': '^13.0.0',
postcss: '^8.4.14',
prettier: '1.17.1',
razzle: '~4.2.16',
'razzle-dev-utils': '~4.2.16',
'razzle-plugin-typescript': '~4.2.16',
'react-select-event': '^5.5.1',
'sequelize-auto': '^0.8.8',
'sequelize-cli': '^6.4.1',
'source-map-support': '^0.5.21',
tailwindcss: '^3.1.4',
'ts-jest': '^27.0.3',
'tsconfig-paths-webpack-plugin': '^4.0.0',
typescript: '~4.4.0',
webpack: '^4.44.1'
}
},
fs: { numberOfFiles: 7873 },
debug: [
'2023-05-22T02:30:28.803Z config Attempting automatic configuration for angular\n',
'2023-05-22T02:30:28.807Z angular/cli config Angular CLI not found.\n',
'2023-05-22T02:30:28.807Z config Finished attempting automatic configuration for angular (4ms)\n',
'2023-05-22T02:30:28.807Z config Attempting automatic configuration for jest\n',
'2023-05-22T02:30:30.794Z jest/config Detected Jest.\n',
'2023-05-22T02:30:30.795Z jest/config Configured Jest.\n',
'2023-05-22T02:30:30.795Z config Finished attempting automatic configuration for jest (1988ms)\n',
'2023-05-22T02:30:30.796Z project Wallaby Node version: v14.17.4\n',
'2023-05-22T02:30:30.796Z project Wallaby config: <homeDir>/git/ratings-app/auto.detect\n',
'2023-05-22T02:30:30.812Z fs File system starting\n',
'2023-05-22T02:30:32.822Z fs File system scan completed\n',
'2023-05-22T02:30:32.867Z project File cache: <homeDir>/.vscode-server/extensions/wallabyjs.wallaby-vscode-1.0.355/projects/a4bf350e1503e30d\n',
'2023-05-22T02:30:32.871Z uiService Listening port 51236\n',
'2023-05-22T02:30:32.874Z project package.json file change detected, invalidating local cache\n',
'2023-05-22T02:30:33.055Z workers Parallelism for initial run: 10, for regular run: 5\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #0\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #1\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #2\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #3\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #4\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #5\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #6\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #7\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #8\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #9\n',
'2023-05-22T02:30:33.055Z workers Starting run worker instance #10\n',
'2023-05-22T02:30:33.056Z workers Web server is listening at 37225\n',
'2023-05-22T02:30:33.056Z project File cache requires some updates, waiting required files from IDE\n',
'2023-05-22T02:30:33.702Z workers Started run worker instance (delayed) #3\n',
'2023-05-22T02:30:33.710Z workers Started run worker instance (delayed) #4\n',
'2023-05-22T02:30:33.710Z workers Started run worker instance (delayed) #0\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #2\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #1\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #8\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #5\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #9\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #6\n',
'2023-05-22T02:30:33.711Z workers Started run worker instance (delayed) #7\n',
'2023-05-22T02:30:33.712Z workers Started run worker instance (delayed) #10\n',
'2023-05-22T02:30:33.724Z project Stopping process pool\n',
'2023-05-22T02:30:33.725Z project Test run started; run priority: 3\n',
'2023-05-22T02:30:33.734Z project Running all tests\n',
'2023-05-22T02:30:33.808Z workers Starting test run, priority: 3\n',
'2023-05-22T02:30:33.808Z nodeRunner Starting sandbox [worker #11, session #a3w2y]\n',
'2023-05-22T02:30:33.808Z nodeRunner Preparing sandbox [worker #11, session #a3w2y]\n',
'2023-05-22T02:30:33.808Z workers Starting run worker instance #11\n',
'2023-05-22T02:30:34.136Z workers Started run worker instance (delayed) #11\n',
'2023-05-22T02:30:34.136Z nodeRunner Prepared sandbox [worker #11, session #a3w2y]\n',
"2023-05-22T02:30:42.514Z workers Sandbox (active) [a3w2y] error: Failed to run jest globalSetup: Jest: Got error running globalSetup - ./tests/setup.ts, reason: Cannot find module 'node:util'\n" +
'Require stack:\n' +
'- ./node_modules/@sequelize/core/lib/utils/string.js\n' +
'- ./node_modules/@sequelize/core/lib/utils/object.js\n' +
'- ./node_modules/@sequelize/core/lib/utils/index.js\n' +
'- ./node_modules/@sequelize/core/lib/model.js\n' +
'- ./node_modules/@sequelize/core/lib/utils/model-utils.js\n' +
'- ./node_modules/@sequelize/core/lib/sequelize.js\n' +
'- ./node_modules/@sequelize/core/lib/index.js\n' +
'- ./src/models/index.ts\n' +
'- ./tests/setup.ts\n' +
'- ./node_modules/jest-util/build/requireOrImportModule.js\n' +
'- ./node_modules/jest-util/build/index.js\n' +
'- ./node_modules/jest-config/build/getCacheDirectory.js\n' +
'- ./node_modules/jest-config/build/Defaults.js\n' +
'- ./node_modules/jest-config/build/normalize.js\n' +
'- ./node_modules/jest-config/build/index.js\n' +
'- ./node_modules/jest-cli/build/init/index.js\n' +
'- ./node_modules/jest-cli/build/cli/index.js\n' +
'- ./node_modules/jest-cli/build/index.js\n' +
'- ./node_modules/jest/build/jest.js/wallaby.js\n',
'2023-05-22T02:30:42.516Z workers [a3w2y] Sandbox is not responsive, recycling worker instance\n',
'2023-05-22T02:30:42.516Z workers Recyling run worker instance #11\n',
"2023-05-22T02:30:42.517Z workers Failed to map the stack to user code, entry message: Failed to run jest globalSetup: Jest: Got error running globalSetup - <homeDir>/git/ratings-app/tests/setup.ts, reason: Cannot find module 'node:util'\n" +
'Require stack:\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/string.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/object.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/index.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/model.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/model-utils.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/sequelize.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/index.js\n' +
'- <homeDir>/git/ratings-app/src/models/index.ts\n' +
'- <homeDir>/git/ratings-app/tests/setup.ts\n' +
'- <homeDir>/git/ratings-app/node_modules/jest-util/build/requireOrImportModule.js\n' +
"- <homeDir>/git/ratings-app/node_modules/jest-util/build/index., stack: Failed to run jest globalSetup: Jest: Got error running globalSetup - <homeDir>/git/ratings-app/tests/setup.ts, reason: Cannot find module 'node:util'\n" +
'Require stack:\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/string.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/object.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/index.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/model.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/utils/model-utils.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/sequelize.js\n' +
'- <homeDir>/git/ratings-app/node_modules/@sequelize/core/lib/index.js\n' +
'- <homeDir>/git/ratings-app/src/models/index.ts\n' +
'- <homeDir>/git/ratings-app/tests/setup.ts\n' +
'- <homeDir>/git/ratings-app/node_modules/jest-util/build/requireOrImportModule.js\n' +
'- <homeDir>/git/ratings-app/node_modules/jest-util/build/index.\n',
'2023-05-22T02:30:42.517Z workers [a3w2y] Run 0 test(s), skipped 0 test(s)\n',
'2023-05-22T02:30:42.518Z project Test run finished\n',
'2023-05-22T02:30:42.518Z project Processed console.log entries\n',
'2023-05-22T02:30:42.518Z project Processed loading sequences\n',
'2023-05-22T02:30:42.518Z project Processed executed tests\n',
'2023-05-22T02:30:42.525Z project Processed code coverage\n',
'2023-05-22T02:30:42.529Z project Test run result processed and sent to IDE\n'
]
}
Thanks for providing the details.
From the report it looks like your ratings-app/tests/setup.ts
setup file is using node:
prefix to import node:util
, however the node.js version that your Wallaby is configured to use (v14.17.4
) doesn't support such prefixed imports.
By default Wallaby is using node version from your PATH
, so one option is to update your default node version.
If you don't want to update your default node version, you may configure Wallaby in VS Code to use the desired node version via Wallaby VS Code setting:
{
...
"wallaby.node": "<PATH_TO_YOUR_NODE>"
}
That did it. Thank you.
Issue description or question
The auto configuration did not work for my project setup so I used a custom config file below but getting Cannot find Jest test runner, stack: Failed to initialize wallaby jest. error:
Wallaby diagnostics report