module.exports = { roots: ['/src'], transform: { '^.+\\.(tsx|jsx|ts|js|mjs)?$': [ '@swc/jest', { jsc: { parser: { syntax: 'typescript', dynamicImport: true, decorators: true, }, transform: { legacyDecorator: true, decoratorMetadata: true, react: { runtime: 'automatic', }, }, }, }, ], }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], modulePathIgnorePatterns: [ '/test/__fixtures__', '/node_modules', '/dist', '/.tsbuild', '/.tsbuild-dev', '/.tsbuild-pub', ], transformIgnorePatterns: ['node_modules/(?!(nanoid)/)'], collectCoverageFrom: ['/src/**/*.{ts,tsx}'], }