Node.js tests and dependencies with mocha and chai

The test code itself is at e2e_tests/integration_test.js, and I leverage mocha and chai to lay out the tests in a BDD-style structure. A convenient side effect of the BDD structure with mocha and chai is that tests can be wrapped by describe and it, which structure how the tests get run. Anything within a describe block doesn't have a guaranteed ordering, but you can nest describe blocks to get the structure you want.

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.