Wallaby always crash if a test file match in wallaby.config but does not match in jest.config
I'm currently working in a project that have .spec.ts files for pure unit testing, and .test.ts files for any test that need external services(database, redis, etc).
When I was working I found that if I changed a file name from .spec.ts to .test.ts wallaby would instantly crash.
While I was writing this issue I made some tests and found that it always crash with any .test.ts file in a specific directory(and sub), even if the file is empty.
That directory was new so I looked at the jest.config.ts file and noticed the directory didn't had a match for .test.ts files.
Simply adding it resolved the issue.
Wallaby always crash if a test file match in wallaby.config but does not match in jest.config
I'm currently working in a project that have
.spec.ts
files for pure unit testing, and.test.ts
files for any test that need external services(database, redis, etc).When I was working I found that if I changed a file name from
.spec.ts
to.test.ts
wallaby would instantly crash.While I was writing this issue I made some tests and found that it always crash with any
.test.ts
file in a specific directory(and sub), even if the file is empty. That directory was new so I looked at thejest.config.ts
file and noticed the directory didn't had a match for.test.ts
files. Simply adding it resolved the issue.Wallaby diagnostics report