lism
Version:
Collection of TypeScript Utilities to help developers streamline their coding workflow.
21 lines (17 loc) • 661 B
text/typescript
// Ref: https://jestjs.io/docs/configuration
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
testRegex: '/__tests__/.*\\.(test|spec)\\.(t|j)sx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
moduleNameMapper: {
'^-internal/components/(.*)': '<rootDir>/src/components/$1',
'^-internal/hooks/(.*)': '<rootDir>/src/hooks/$1',
'^-internal/utils/(.*)': '<rootDir>/src/utils/$1',
'^-internal/shared/(.*)': '<rootDir>/src/shared/$1',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
};
export default config;