PHP Unit Test with deferred Page Props #2228
felix-droese
started this conversation in
Ideas
Replies: 1 comment
-
Hi Felix, I had the same issue and I dont think there is a way to test deferred props at the moment. The response of your test is correct because property is deferred and not part of the Inertia response. So what I did is, I removed the
Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, in a Laravel + Vue Setup,
I would like to test the proper initialization of a deferred prop:
In my controller, I return this prop to the page:
And my test looks like this:
I get the output:
Is it possible to test deferred props? If yes, how?
Beta Was this translation helpful? Give feedback.
All reactions