swc-node
swc-node copied to clipboard
@swc-node/jest TypeError: Cannot read properties of undefined
I'm trying to migrate from ts-jest to @swc-node/jest, but I keep getting this error from the file where I export all of my Database models.
Here is my index.ts
where I do all these exports
This is my transform
from jest.config.js
transform: {
'^.+\\.(t|j)s?$': [
'@swc-node/jest',
{
keepClassNames: true,
esModuleInterop: true,
dynamicImport: true,
experimentalDecorators: true,
emitDecoratorMetadata: true,
},
],
},
I've tried all combinations for this configuration above, without success.
Am i missing something?