<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Documents tagged with Node.js Testing]]></title><description><![CDATA[Documents tagged with Node.js Testing]]></description><link>https://techsparx.comnode.js-testing.xml</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Feb 2026 21:14:33 GMT</lastBuildDate><item><title><![CDATA[Don't rip your hair out when Vows tells you "Errored callback not fired" - try this one weird trick instead
]]></title><description><![CDATA[<p>When your vows.js based tests for a Node.js application says "Errored » callback not fired" -- well, it can be very confusing.  In my case the code clearly handled all paths ensuring the Vows callback would be called.  No matter how many tweaks I performed to try and catch some possible error in test or code, I couldn't figure out what caused this problem.  But after some yahoogling, the answer was not only difficult to find, but surprisingly simple.</P>
]]></description><link>https://techsparx.com/nodejs/howto/vows-weird-trick.html</link><guid isPermaLink="true">https://techsparx.com/nodejs/howto/vows-weird-trick.html</guid><pubDate>Sat, 14 Feb 2026 08:01:07 GMT</pubDate></item><item><title><![CDATA[Unit testing Express route handlers in isolation from everything, including Express
]]></title><description><![CDATA[<p>When we write unit tests it's good practice to "mock" out extraneous bits to the code being tested.  It's almost like the scientific method in that testing, in the unit testing paradigm, means exercising each small portion of your code in isolation if only to eliminate unwanted variables.  While there are other testing paradigms, unit testing has its value.  A big question for Node.js web application programmers is - how do you mock out HTTP requests for unit testing?  In other words, how do you test the route handler method in isolation from the Node.js HTTPServer object, or Express, or whatever app framework used in your application?</P>
]]></description><link>https://techsparx.com/nodejs/howto/express-unit-testing.html</link><guid isPermaLink="true">https://techsparx.com/nodejs/howto/express-unit-testing.html</guid><pubDate>Sat, 14 Feb 2026 08:01:06 GMT</pubDate></item></channel></rss>