Skip to content

Testing with the PersistentContainer Dependencies Addition #49

Answered by tgrapperon
Nomad00 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Nomad00!
I just tried your code in a standalone project, and I'm not able to reproduce the issue.
It is maybe possible that your host application is hitting this dependency while testing. This kind of issue can also happen if you're statically linking Dependencies in your test target.
Have you checked this section of the documentation?
In any case, you shouldn't have to implement individual endpoints, .default(inMemory:) is a fully fledged persistent store.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Nomad00
Comment options

@Nomad00
Comment options

@tgrapperon
Comment options

Answer selected by Nomad00
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants