I have a .swcrc file that has a exclude like
"exclude": [
"src/tests",
"src/migrations",
"\\..*spec\\.ts$"
]
because I don't want the build to have the test files, but when trying to replace the exclude in the jest.config.ts file like this
transform: {
'^.+\\.(t|j)s$': ['@swc/jest', {
...swcConfig,
sourceMaps: 'inline',
exclude: [],
}],
},
When running the tests everything fails due to this error
cannot process file because it's ignored by .swcrc
If I remove the exclude from the .swcrc file everything works as expected.