mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 10:06:15 -08:00
- Added handling for missing expiration date in withPortal feature. - Introduced request versioning in withSearch feature to prevent stale search results. - Created test setup for Jest in data-access and feature libraries. - Added Jest configuration and TypeScript configuration for testing in feature library. - Removed GlobalRecentlyViewedComponent and its associated files to streamline the codebase. - Updated search results component to ignore stale responses and improve search handling.
22 lines
782 B
TypeScript
22 lines
782 B
TypeScript
export default {
|
|
displayName: 'portal-xtream-data-access',
|
|
preset: '../../../../jest.preset.js',
|
|
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
|
coverageDirectory: '../../../../coverage/libs/portal/xtream/data-access',
|
|
transform: {
|
|
'^.+\\.(ts|mjs|js|html)$': [
|
|
'jest-preset-angular',
|
|
{
|
|
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
stringifyContentPathRegex: '\\.(html|svg)$',
|
|
},
|
|
],
|
|
},
|
|
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
|
|
snapshotSerializers: [
|
|
'jest-preset-angular/build/serializers/no-ng-attributes',
|
|
'jest-preset-angular/build/serializers/ng-snapshot',
|
|
'jest-preset-angular/build/serializers/html-comment',
|
|
],
|
|
};
|