<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:source="https://source.scripting.com/"
>

<channel>
	<title>Chai &#8211; Andy Sylvester&#039;s Web</title>
	<atom:link href="https://andysylvester.com/category/chai/feed/" rel="self" type="application/rss+xml" />
	<link>https://andysylvester.com</link>
	<description>Software development, music, and the World Wide Web</description>
	<lastBuildDate>Sat, 24 Aug 2024 23:58:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
<cloud domain='andysylvester.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
	<source:account service="rss.chat">AndyTest</source:account>
	<source:self>https://andysylvester.com/category/chai/feed/</source:self>
	<item>
		<title>Irritating inconsistencies in Chai framework versions</title>
		<link>https://andysylvester.com/2024/08/24/irritating-inconsistencies-in-chai-framework-versions/</link>
					<comments>https://andysylvester.com/2024/08/24/irritating-inconsistencies-in-chai-framework-versions/#respond</comments>
		
		<dc:creator><![CDATA[Andy]]></dc:creator>
		<pubDate>Sat, 24 Aug 2024 23:58:10 +0000</pubDate>
				<category><![CDATA[Chai]]></category>
		<category><![CDATA[Micro.Blog]]></category>
		<category><![CDATA[Mocha]]></category>
		<category><![CDATA[Software Testing]]></category>
		<category><![CDATA[TDD]]></category>
		<guid isPermaLink="false">https://andysylvester.com/?p=3528</guid>

					<description><![CDATA[This week, I spent some time working to understand how to use the Mocha testing tool and the Chai assertion tool in developing apps using Node.js. I found two articles that I was going to use to get started, and I decided to set up my package.json file to use the latest version of the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">This week, I spent some time working to understand how to use the <a href="https://mochajs.org/">Mocha </a>testing tool and the <a href="https://www.chaijs.com/">Chai </a>assertion tool in developing apps using Node.js. I found <a href="https://www.browserstack.com/guide/unit-testing-for-nodejs-using-mocha-and-chai">two </a><a href="https://buddy.works/guides/how-automate-nodejs-unit-tests-with-mocha-chai">articles </a>that I was going to use to get started, and I decided to set up my package.json file to use the latest version of the tools. What I found was that I could not use the example code in the two articles, and kept getting error messages that I could not find answers for, except that several people recommended using an older version of the Chai assertion tool. I took a look at the Chai website releases page, and found that in <a href="https://www.chaijs.com/releases/#v5.0.0">version 5</a>, only ECMAScript Modules were supported. Previously, ECMAScript Modules and CommonJS Modules were allowed. However, this change meant that I would have to change the example code I was using to run the latest version of Chai. I tried numerous combinations of changes, but none were totally successful. After an hour of trial and error, I decided to reinstall version 4.3.7 of Chai in my test project, and everything now worked as I expected. UGH! Onward!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://andysylvester.com/2024/08/24/irritating-inconsistencies-in-chai-framework-versions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
