Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: hasFinalState + immutable.js = ❤️ ? #386

Open
vandriesh opened this issue Apr 28, 2022 · 0 comments
Open

Question: hasFinalState + immutable.js = ❤️ ? #386

vandriesh opened this issue Apr 28, 2022 · 0 comments

Comments

@vandriesh
Copy link

vandriesh commented Apr 28, 2022

Question: any plans to expect adjust hasFinalState to consider immutable.js based state
or give a possibility to transform state
e.g.

    ...
    .hasFinalState((state) => state.getIn(['x','y]) === 'yyy)
    ...

e.g. now it looks like:

SagaTestError: 
Expected to have final store state:
-----------------------------------
Map {
  size: 1,
  _root: ArrayMapNode { ownerID: OwnerID {}, entries: [ [ 'data', [Map] ] ] },
  __ownerID: undefined,
  __hash: undefined,
  __altered: false
}

But instead had final store state:
----------------------------------
Map {
  size: 1,
  _root: ArrayMapNode { ownerID: undefined, entries: [ [ 'data', [Map] ] ] },
  __ownerID: undefined,
  __hash: undefined,
  __altered: false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant