Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Add docs for compiling with coffeescript 1.7+ (close #1122)

Travis Jeffery2f42a833555f
diff --git a/index.html b/index.html
index 6bc18138..3c3d4234 100644
--- a/index.html
+++ b/index.html
@@ -334,7 +334,8 @@ Options:
<p>coffee-script is no longer supported out of the box. CS and similar transpilers
may be used by mapping the file extensions (for use with --watch) and the module
- name. For example <code>--compilers coffee:coffee-script</code>.</p>
+ name. For example <code>--compilers coffee:coffee-script</code> with CoffeeScript 1.6- or
+ <code>--compilers coffee:coffee-script/register</code> with CoffeeScript 1.7+.</p>
<h3 id="bail-option">-b, --bail</h3>
diff --git a/index.md b/index.md
index e3b537b1..b93e36b5 100644
--- a/index.md
+++ b/index.md
@@ -294,7 +294,8 @@ Testing asynchronous code with Mocha could not be simpler! Simply invoke the cal
coffee-script is no longer supported out of the box. CS and similar transpilers
may be used by mapping the file extensions (for use with --watch) and the module
- name. For example `--compilers coffee:coffee-script`.
+ name. For example `--compilers coffee:coffee-script` with CoffeeScript 1.6- or
+ `--compilers coffee:coffee-script/register` with CoffeeScript 1.7+.
<h3 id="bail-option">-b, --bail</h3>
@@ -443,7 +444,7 @@ The `require` interface allows you to require the `describe` and friend words
var pre = require('mocha').before
var assertions = require('mocha').assertions
var assert = require('assert')
-
+
testCase('Array', function(){
pre(function(){
// ...