I want to use tamejs to write mocha tests, but mocha doesn’t support it by default.
Is there any way to let mocha work with tamejs? I don’t want to write .tjs files and compiling them into .js each time before running tests.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can specify an external compiler in mocha with
--compilersoptionSo, create
mocha.optsin your app/tests path and add :Then every extension
.tjswill be compiled automatically when starting mocha