Jimmy Jia
Jimmy Jia
I don't think we export the object anywhere, though. We do export the prop type. Python has "smart" mocks that are essentially proxy objects with all methods auto-mocked. Does such...
I guess we could expose like a `found/testing` that has helpers for building mocks like that.
Well, if you're trying to test state management, it might be easiest to use a server protocol and just _actually_ instantiate Found.
Okay, I think the thing to do here is to add a `found/testing` or `found/test-utils` module that wraps up some of these test utils for convenience.
That makes sense to me.
There's not a really good way to do this at the moment. I'm going to expose the router context as its own thing, and then it will be possible to...
Okay, plan here is to add a `dummyRouter` export in `found/lib/test-utils` (and a Jest-specific version as well).
In general, we delegate to the browser to do all the history tracking, and don't try to do duplicate tracking of history states (because that might go out-of-sync/wrong). For similar...
Store in `location.state` when "leaving" the old category.
Are you trying to access `children` inside `ChatView` or inside `renderRoute`? `children` gets injected in a sort of janky way per https://github.com/4Catalyzer/found/blob/b95e8f52f364c652b1d75fe296f5df263f179915/src/ElementsRenderer.js#L39 by default, but this can fail for any...