procyon/jest.config.js
romanjaros 9e0aec7186
Some checks failed
forgejo/Procyon/procyon/pipeline/head There was a failure building this commit
Remove unused code and refactor components for React Native
This commit removes unused placeholder files and updates several components to be compatible with React Native. These updates include changes in styles, properties, and components like Modals, Toaster, Navigator, and others. The affected files were also appropriately reorganized. Additionally, a new .storybook manager file was introduced.
2024-02-20 15:22:13 +00:00

31 lines
1 KiB
JavaScript

module.exports = {
rootDir: './',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(-|/)(test))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: {
'^config(.*)$': '<rootDir>/config/$1',
'^@procyon/components(.*)$': '<rootDir>/packages/components/src/$1',
'^@procyon/api(.*)$': '<rootDir>/packages/api/src/$1',
'^@procyon/auth(.*)$': '<rootDir>/packages/auth/src/$1',
'^@procyon/utils(.*)$': '<rootDir>/packages/utils/src/$1',
'^@procyon/forms(.*)$': '<rootDir>/packages/forms/src/$1',
'^@procyon/hooks(.*)$': '<rootDir>/packages/forms/src/$1',
'^@procyon/localization(.*)$': '<rootDir>/packages/localization/src/$1',
'^@procyon/styles(.*)$': '<rootDir>/packages/styles/src/$1',
'^@procyon/types(.*)$': '<rootDir>/packages/types/src/$1',
'\\.(css|less|sass|scss)$': '<rootDir>/types/emptyMock.ts',
},
collectCoverage: !!process.env.CI,
coverageReporters: ['lcov'],
coverageDirectory: '<rootDir>/temp/jest',
globals: {
'ts-jest': {
diagnostics: {
warnOnly: true,
},
},
},
};