module.exports = { testPathIgnorePatterns: ['/node_modules/', 'api/', 'e2e/'], moduleNameMapper: { '\\.(jpg|jpeg|png|svg|woff|woff2)$': '/client/src/__mocks__/file-mock.ts', // Plain CSS - match css files that don't end with // '.module.css' https://regex101.com/r/VzwrKH/4 '^(?!.*\\.module\\.css$).*\\.css$': '/client/src/__mocks__/style-mock.ts', // CSS Modules - match files that end with 'module.css' '\\.module\\.css$': 'identity-obj-proxy', '^lodash-es$': 'lodash' }, globals: { __PATH_PREFIX__: '' }, verbose: true, transform: { '^.+\\.[jt]sx?$': '/jest.transform.js' }, roots: ['.', './client', './api-server'], transformIgnorePatterns: ['node_modules/.pnpm/(?!(nanoid|uuid)@)'], setupFilesAfterEnv: ['./jest.setup.js'], testEnvironment: 'jsdom' };