const svgTransformPath = require.resolve('config/svgTransform.js') 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', }, }, }, }, ], '^.+\\.svg$': svgTransformPath, }, testRegex: '.+\\.(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}'], }