/** @type { import('@jest/types').Config.InitialOptions } */ module.exports = { // preset: '../../jest-preset.js', // DOES NOT WORK // same as preset: collectCoverage: false, globals: { 'ts-jest': { isolatedModules: true, }, }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], resetMocks: true, resetModules: true, testRegex: ['.+\\.test\\.tsx?$'], transform: { '^.+\\.tsx?$': 'ts-jest' }, // extended from preset: cache: false, modulePathIgnorePatterns: ['/network/.*/__mocks__'], rootDir: 'app', setupFiles: ['./__jest__/setup.ts'], setupFilesAfterEnv: ['./__jest__/setup-after-env.ts'], testEnvironment: 'jsdom', verbose: true, moduleNameMapper: { '\\.(css|less|png)$': '/__mocks__/dummy.ts', 'styled-components': '/../node_modules/styled-components', }, };