O
O
Oleg Drapeza2016-04-18 14:36:53
JavaScript
Oleg Drapeza, 2016-04-18 14:36:53

How to properly set up a build for code testing?

Good afternoon!
After one interesting conference, I finally decided to start testing my code.
Familiar with Mocha and Chai syntax, and wanted to add DOM component testing, respectively browser emulation to the console.
After a long pain, installing plugins "mocha", "chai", phantomjs-prebuilt", "karma", "karma-chai", "karma-mocha", "karma-mocha-reporter", "karma-phantomjs-launcher" and "karma-webpack" - it turned out to run tests in the console that pass, do not swear at import and require, but I don't really understand why and how
Repo link - general assembly , tests in src
Question, what am I doing wrong, why is it all so complicated

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question