JavaScript
You're viewing a free preview. Sign in free to read every script.
Why this exists Node ships a test runner (node:test), so a project can have fast unit tests, mocks and coverage with no framework to install. That matters for automation scripts, which are often untested despite running…
Testing with the Built-in node:test Runner: Cases, Mocks, Coverage and Jenkins Results
Write tests with the test runner that ships in Node: describe and test, table-driven cases, assert.rejects, mocking fetch without a library, running with coverage, and producing JUnit XML for Jenkins.
Sign in free to read this script, along with the rest of the library.
Sign in free