Unit Testing Node.js with Jest
Test Node.js code that talks to SQL Server and reads XML with Jest, using explicit mocks, working examples for a user lookup and an XML validator, and tests for the failure cases as well as the happy path.

Test Node.js code that talks to SQL Server and reads XML with Jest, using explicit mocks, working examples for a user lookup and an XML validator, and tests for the failure cases as well as the happy path.

Install nvm, run Node 26 LTS alongside other versions, switch per project with a .nvmrc file, and set a default version.
