WithStore pre-provides a store value for isolated testing.
(key *StoreKey[T], value T)
| 57 | |
| 58 | // WithStore pre-provides a store value for isolated testing. |
| 59 | func WithStore[T any](key *StoreKey[T], value T) TestOption { |
| 60 | return func(s *Scope) { |
| 61 | Provide(s, key, value) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // RenderedTree is the result of TestRender. It provides query methods |
| 66 | // to find nodes and simulate interactions, then re-render to see changes. |