🚀 Help me to become a full-time open-source developer by sponsoring me on Github
// jest.config.js
module.exports = {
transform: {
'^.+\\.(t|j)sx?$': ['@swc-node/jest'],
},
}
Configuration can be passed as a second argument to transform
:
// jest.config.js
module.exports = {
transform: {
'^.+\\.(t|j)sx?$': [
'@swc-node/jest',
// configuration
{
dynamicImport: true,
react: {
pragma: 'h',
},
},
],
},
}