This works for me
mocha --require ./fix_my_iced_tests.js --compilers coffee:coffee-script
create fix_my_iced_tests.js
require('iced-coffee-script').register()
create test/some_test.coffee (this make sure that fix actually works)
assert = require 'assert'
describe 'test section', ()->
it 'is ok', (done)->
await setTimeout (defer next), 100
assert.strictEqual(1, 1)
done()
return
return
You should recieve something like this
Type subdsl
√ is ok (102ms)
1 passing (109ms)
without fix you should recieve something like this
ReferenceError: next is not defined
--- EDITED ---
Much better option found here
mocha --compilers coffee:iced-coffee-script/register