Post by twetch#622

1Eyk15…d43C Key · twetch

Anyone have any good tutorials or videos on how to do unit testing well?

Helpful but not necessary:

  • Examples of Dependency Injection/Mocking
  • Written in JavaScript, esp. if with Mocha and/or Chai
  • General good practices of testing, TDD/BDD
What the chain says
Block
631 460
Time
2020-04-20T16:17:50Z
Signer
1Eyk15KEeYX9JwH8e98pqpX3kTUuY9d43C
App
twetch
Type
post
Content type
text/plain
Name in tx
twetch#622

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 1Eyk15KEeYX9JwH8e98pqpX3kTUuY9d43C Verified

Replies (5)

1Eyk15…d43C Key · twetch
Replying to@1M27hW…7oEt

Awesome, looks like a great starting point for me.

I've got something to do in a moment, but I'm going to dig deeper on this in a bit!

Thanks for sharing!

/pay @649 $0.50

1Eyk15…d43C Key · twetch
Replying to@13ePwh…kYMh

At this point I'm using Mocha + Chai... May switch to Jest at some point, though, at the very least to just test my own understanding of the concepts.

I think what I need is info on good coding practices, design patterns, etc. Decoupling especially.

1Eyk15…d43C Key · twetch
Replying to@1Eyk15…d43C

I'm kind of just firing darts at things that look like targets in a dark room, if that makes sense...