super-productivity/src
Johannes Millan bbd4b41b12
test: clear selectOverdue/LaterToday selector overrides across specs (#7274)
The new work-view.component.spec.ts uses provideMockStore with
overrideSelector for selectOverdueTasksWithSubTasks (and
selectLaterTodayTasksWithSubTasks). overrideSelector calls setResult(),
which persists across spec files and is only cleared by clearResult().

When task.selectors.spec.ts runs after work-view.component.spec.ts, the
persisted override ([] in most cases) caused four selectOverdueTasksWithSubTasks
assertions to fail with "Expected 0 to be 1".

Extend the defensive cleanup in the selectors spec's beforeEach to also
clear and release these two selectors, matching the existing pattern
documented in the same block.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-19 19:00:17 +02:00
..
app test: clear selectOverdue/LaterToday selector overrides across specs (#7274) 2026-04-19 19:00:17 +02:00
assets Update Croatian translation (#7148) 2026-04-18 23:17:22 +02:00
environments 18.2.3 2026-04-18 23:24:19 +02:00
static
styles feat: change very small container to 356px 2026-04-01 20:23:45 +02:00
test-helpers
typings
_common.scss
favicon.ico
hammer-config.class.ts
index.html
karma.conf.js
main.ts fix(sync): scope interval timer to file-based providers and drop unneeded migration 2026-04-14 22:09:02 +02:00
manifest.json
polyfills.ts
styles.scss
test.ts
tsconfig.app.json
tsconfig.spec.json
tsconfig.worker.json