Skip to content

Using initialState on testing #1164

Mar 23, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

The initialState is a state tree with keys of the ids of each store. In your case, it would be:

const initialState = {
  configuration: { baseYear: 2030 }
}

Make sure to replace the configuration with your actual configuration store id.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Flavsditz
Comment options

@PatrikBird
Comment options

@Flavsditz
Comment options

@PatrikBird
Comment options

Answer selected by Flavsditz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants