hunterWang / tdd_node_mocha_jest

prepare the environment for people who want to practice TDD in node.js with mocha or jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tdd_node_mocha_jest

prepare the environment for people who want to practice TDD in node.js with mocha or jest

應該要做的事情

  1. npm insall 把該載的載一下原則上就能開始用了
  2. 看你想寫mocha 還是jest, 我因為沒想法就把兩個都先放好,指令分別是 2.1 npm run test-jest 2-2 npm run test-mocha
  3. 如果不想寫ts,也不用特別做什麼,使用上也不會有問題,確定一下測試檔案相關的路徑沒錯就好了
  4. 主要我都練習codewar上面的題目,但這些應該也夠開始寫網頁測試相關了
  5. 還在想要不要順便練個react, 畢竟angular2太肥了,寫起來有點煩

備註: 其實想寫TDD,主要是想學習如何把user story切的更乾淨,把耦合弄鬆一點...

About

prepare the environment for people who want to practice TDD in node.js with mocha or jest

License:MIT License


Languages

Language:JavaScript 62.7%Language:TypeScript 37.3%