Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Thomas Reggi
@reggi
Hey! Any idea about supporting promises?
Pedro Tacla Yamada
@yamadapc
mm...
sure
I’d really appreciate a PR for that :D
It’s very simple I think… Wouldn’t take much…
Do you have ideas for how the API would look?
/**
 * @example
 *     returnsAPromise() //async=> 10
 */
that’d be ideal, but currently we inject cb into the test
mm… maybe just assume it isn’t used?
Pedro Tacla Yamada
@yamadapc
Checking if it’s easy
If is, it’ll be supported in 10m or so
Pedro Tacla Yamada
@yamadapc
@reggi It’s easy, so it’s now supported, but I’ve just found out that the built in runner is broken for async tests...
Thomas Reggi
@reggi
Thanks a bunch
The api usually looks like // promise -> 10
because it returns a promise
But it's not very standard
by api I mean examples i've seen
Thomas Reggi
@reggi
Thomas Reggi
@reggi
I'm really looking forward to hearing you throughs on this yamadapc/jsdoctest#16
Pedro Tacla Yamada
@yamadapc
@reggi That's a good enough jsdoc annotation...
Does... //=> { "foo": console.log } not work?
Other issues are all good ideas
I'm just going to wait a sec before thinking about them, there're other important problems right now
If you want, please collaborate :D
Pedro Tacla Yamada
@yamadapc
@reggi #19 is #7
Thomas Reggi
@reggi
Hey @yamadapc just saw all this thanks for getting back to me.
May scratch an itch you have too.
Also could use a better name before I publish
exe-js-md ?
Pedro Tacla Yamada
@yamadapc
@reggi I think it looks good :)
Have you seen those literate programming packages that extract the code to be runnable?
Thomas Reggi
@reggi
?
Pedro Tacla Yamada
@yamadapc
Extract the code blocks from markdown, so you can run it, like a program
Thomas Reggi
@reggi
Does that exist?
Pedro Tacla Yamada
@yamadapc
Yeah
Thomas Reggi
@reggi
Can you send me it?