mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
- Introduced `jest.config.ts` for testing setup. - Added `workspace-search-capability.ts` to define search capabilities. - Created `workspace-shell-route.utils.ts` for parsing and handling workspace routes. - Implemented tests for route utilities in `workspace-shell-route.utils.spec.ts`. - Updated `index.ts` to export new navigation utilities. - Configured TypeScript for testing with `tsconfig.spec.json`. - Set up test environment in `test-setup.ts`. Entire-Checkpoint: 130fa99dcbb4
23 lines
820 B
TypeScript
23 lines
820 B
TypeScript
export default {
|
|
displayName: 'workspace-shell-util',
|
|
preset: '../../../../jest.preset.js',
|
|
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
|
coverageDirectory: '../../../../coverage/libs/workspace/shell/util',
|
|
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',
|
|
],
|
|
moduleFileExtensions: ['ts', 'js', 'html'],
|
|
};
|