elm-program-test
elm-program-test copied to clipboard
Support testing navigation in non-application apps
https://github.com/elm/browser/blob/master/notes/navigation-in-elements.md
SimulatedEffect needs PushUrl/ modifyUrl variants
This should be possible now, but it would be good to add an example of how to do it.
Proposed API
withGlobalDomEventHandler :
(eventName: String
-> event: Json.Value (includes target.href)
-> { stopPropagation : Bool
, preventDefault : Bool
, produceIncomingPortValues :
[ (String, Json.Value) ]
}
-> ProgramTest.ProgramDefintion
-> ProgramTest.ProgramDefintion