I discovered some errors in the elmish.md walkthrough at the mount step. To be clear, when I run the tests for the final version of elmish.js as given in the repo, everything passes, so these errors are against an intermediate step in the text of elmish.md only.
- Entering the code as given through the
mount implementation section produces the following:

This stems from the test call to elmish.mount. It looks as if the order of the arguments to view are in the wrong order; the instances specifically are: a) the call to view in the mount function within the elmish.md text and b) in the counter.js declaration of view. The arity of the call compared to the declaration also differs.
FWIW, to fix I switched the order of the args in counter.js (the final version of elmish.js seemed to indicate that was the way). This eliminates the TypeError for 'signal not a function', but running the tests leads to another error:
- The first test for the assert against the state of the counter fails, and the button seems not to be in the (js)DOM:

The view function returns a container, but it doesn't seem to be appended? When I call document.appendChild on each of the two calls to view in mount, the tests pass.
I am on Ubuntu 20.04, node 14.15.1.
I discovered some errors in the
elmish.mdwalkthrough at the mount step. To be clear, when I run the tests for the final version ofelmish.jsas given in the repo, everything passes, so these errors are against an intermediate step in the text ofelmish.mdonly.mountimplementation section produces the following:This stems from the test call to
elmish.mount. It looks as if the order of the arguments tovieware in the wrong order; the instances specifically are: a) the call toviewin themountfunction within theelmish.mdtext and b) in thecounter.jsdeclaration ofview. The arity of the call compared to the declaration also differs.FWIW, to fix I switched the order of the args in
counter.js(the final version ofelmish.jsseemed to indicate that was the way). This eliminates theTypeErrorfor 'signal not a function', but running the tests leads to another error:The
viewfunction returns acontainer, but it doesn't seem to be appended? When I calldocument.appendChildon each of the two calls toviewinmount, the tests pass.I am on Ubuntu 20.04, node 14.15.1.