mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
- Added `include_descendants` option to event filters, allowing recursive path matching for resource events. - Updated `affects_path` method to support descendant matching, improving event handling accuracy. - Refactored subscription logic to utilize the new filtering capabilities, ensuring only relevant events are processed. - Introduced tests for event filtering to validate exact vs. recursive matching, enhancing reliability of event-driven updates. - Updated related components to leverage the new filtering options, improving overall performance and user experience.
25 lines
483 B
JavaScript
25 lines
483 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/__tests__/**/*.test.ts', '**/__tests__/**/*.test.tsx'],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
setupFilesAfterEnv: ['<rootDir>/src/__tests__/setup.ts'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.{ts,tsx}',
|
|
'!src/**/*.d.ts',
|
|
'!src/**/__tests__/**',
|
|
'!src/generated/**',
|
|
],
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: {
|
|
jsx: 'react',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|