mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-27 17:53:50 +00:00
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> |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| environments | ||
| static | ||
| styles | ||
| test-helpers | ||
| typings | ||
| _common.scss | ||
| favicon.ico | ||
| hammer-config.class.ts | ||
| index.html | ||
| karma.conf.js | ||
| main.ts | ||
| manifest.json | ||
| polyfills.ts | ||
| styles.scss | ||
| test.ts | ||
| tsconfig.app.json | ||
| tsconfig.spec.json | ||
| tsconfig.worker.json | ||