#How and what all libs reqd for BDD

12 messages · Page 1 of 1 (latest)

rough holly
#

Hardly see anything related to BDD in docs. Does Nestjs support?

cold mountain
#

I dont see the relation between bdd and nest?

#

Or any framework for that matter

unkempt locust
rough holly
#

@unkempt locust Thanks a lot. Im seeing too many libs like jest, mocha, chai, sinon, jasmine as well.
Just wanna knw is there any specific purposes for each of those or any common convention that something must be preferred for some sort of testing??

#

so that is there any best practices that if its unit/integration/behavior (BDD)/TDD, anything specific?
Do TDD n BDD have different libs to be used?

cold mountain
# rough holly <@570331400893628421> Thanks a lot. Im seeing too many libs like jest, mocha, ch...

I feel like you don't completely understand what BDD is (same goes for TDD) here. They are just paradigms to test your application nothing more, nothing less. You only need a test runner.

For BDD there are libs out there to work with an actual specification (gherkin) like @unkempt locust mentioned -- but its not required. You only really want it if you want to integrate the contract with your actual customer otherwise its just bloat that adds extra work. If you still want to follow BDD practices then you can just create your own layer during the tests.

Regarding TDD, you might wanna read up on what it actually means.

Jest and Vitest are commonly used.

shrewd idol
cold mountain
shrewd idol
cold mountain