mocha

ํ ์คํธ ์๋ํ ํ๋ ์์ํฌ Mocha ๊ณต์ ๋ฉ๋ด์ผ ๋ฐ๋ผํ๊ธฐ (2)
1. chai mocha ๊ณตํ์์ chai ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ถ์ฒํ๋ฏ๋ก, ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ ์ฉํด์ mocha + chai assert style ์์ ๋ฅผ ์์ฑํด๋ณด๊ฒ ๋ค. 2. chai ์ค์น Installation - Chai Installation Chai is available for both node.js and the browser using any test framework you like. There are also a number of other tools that include Chai. Node.js Package is available through npm: Recommend adding it to package.json devDependencies using www.chaijs.com ์๋ ๋ช ..

ํ ์คํธ ์๋ํ ํ๋ ์์ํฌ Mocha ๊ณต์ ๋ฉ๋ด์ผ ๋ฐ๋ผํ๊ธฐ (1)
Mocha - the fun, simple, flexible JavaScript test framework Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct te mochajs.org ํ์ฌ์์ ํ ์คํธ ํ๋ ์์ํฌ ์ค jest์ mocha ์ค mocha๋ฅผ ์ฑํํ๋ ์ชฝ์ผ๋ก ๊ธฐ์ธ์ฌ์ง๊ณ ์๋ ๊ฒ ๊ฐ์์ mocha ๊ณต..