seedling/source/ui/jest.config.js
Roman Jaroš 5246efb027 Add API monorepo
Change-Id: I39aa1707744bb86c4bc9113157bbf815bb3fe33a
2023-09-10 22:25:09 +02:00

21 lines
767 B
JavaScript

module.exports = {
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(-|/)(test))\\.(ts|tsx)?$',
transformIgnorePatterns: ['<rootDir>/node_modules/.*'],
testPathIgnorePatterns: ['.vscode'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
moduleNameMapper: {
'^app(.*)$': '<rootDir>/src/app/$1',
'^api(.*)$': '<rootDir>/src/api/$1',
'^components(.*)$': '<rootDir>/src/components/$1',
'^constants(.*)$': '<rootDir>/src/constants/$1',
'^features(.*)$': '<rootDir>/src/features/$1',
'^hooks(.*)$': '<rootDir>/src/hooks/$1',
'^localization(.*)$': '<rootDir>/src/localization/$1',
'^pages(.*)$': '<rootDir>/src/pages/$1',
'^types(.*)$': '<rootDir>/src/types/$1',
'^utils(.*)$': '<rootDir>/src/utils/$1',
},
};