Skip to content

Sporadically failing specs with version 13.0.2 instead of version 13.0.1 #3264

@LukasMachetanz

Description

@LukasMachetanz

Hey everyone!

Using version 13.0.2 instead of 13.0.1 results in sporadically failing specs within an Nrwl/Nx/Angular project using Karma/Jasmine.

    "@ngrx/component": "^13.0.2",
    "@ngrx/component-store": "^13.0.2",
    "@ngrx/effects": "^13.0.2",
    "@ngrx/entity": "^13.0.2",
    "@ngrx/router-store": "^13.0.2",
    "@ngrx/store": "^13.0.2",

Following artefacts are used within the test suite:

import { MockStore, provideMockStore } from "@ngrx/store/testing";
import { MemoizedSelector, MemoizedSelectorWithProps } from "@ngrx/store";
import { provideMockActions } from "@ngrx/effects/testing";
import { ReactiveComponentModule } from "@ngrx/component";

Error:

TypeError: Cannot read properties of undefined (reading '3')
at apply (libs/ad-templates/data-access/src/lib/+state/selectors/campaign-pipelines.selectors.ts:20:89)
at apply (node_modules/@ngrx/store/fesm2020/ngrx-store.mjs:699:30)
at apply (node_modules/@ngrx/store/fesm2020/ngrx-store.mjs:580:39)
at apply (node_modules/@ngrx/store/fesm2020/ngrx-store.mjs:603:43)

Has anyone an idea what could be the reason for the shown error? Are any similar problems known using the mentioned version? The described problem occurs within our project solely updating the NRGX version, therefore I decided to address this problem here.

The Subject Under Test is an Angular component which uses NGRX selectors implemented as "Selector With Props" which are deprecated now. Could this be a possible reason for the experienced problems using the new version?

Any help appreciated.

Greets,
Lukas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions