seedling/source/app/jest.config.js
Roman Jaroš 13ab39d1fd Initial builded version
Change-Id: I8937a5b559134d1d6029d16e9831c961287fee0c
2023-09-09 16:56:30 +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',
},
};