Questions tagged [tamejs]
4 questions
2
votes
1 answer
Tamejs can't work with mocha?
See my test code using mocha + tamejs:
test/t.tjs
require('should');
function inc(n, callback) {
setTimeout(function() {
console.log('### inc: ' + n);
callback(n+1);
}, 1000);
};
describe('test', function(){
it('show ok with tamejs',…

Freewind
- 193,756
- 157
- 432
- 708
1
vote
1 answer
How to simplify the error handling in tamejs?
I'm pretty happy with tamejs, it makes my javascript code much clearer. But I still feel the error handling is a little boring.
See the code:
// callback should be callback(err, nextInt)
function inc(n, callback) {
setTimeout(function() {
…

Freewind
- 193,756
- 157
- 432
- 708
0
votes
2 answers
How to let tamejs automatically compile all .tjs files into .js?
I'm interested in tamejs, and want to use it in my project.
But I don't want to manually compile them into js files before running/testing, etc. I want to let tamejs monitor a directory, and automatically compiles .tjs to .js when the files…

Freewind
- 193,756
- 157
- 432
- 708
0
votes
1 answer
How to let mocha work with tamejs?
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.

Freewind
- 193,756
- 157
- 432
- 708