From ded7f43ae86621761539badea8b977fabf646386 Mon Sep 17 00:00:00 2001 From: Michele Di Salvatore Date: Sat, 18 Nov 2017 10:28:06 +0000 Subject: [PATCH] update mocha script with babel As `--compilers` is [deprecated in mocha](https://github.com/mochajs/mocha/wiki/compilers-deprecation), they suggest to change `mocha --compilers js:babel-register` with `mocha --require babel-register` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b58df8..85157e7 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ Then we can add an `npm test` script. "start": "nodemon lib/index.js --exec babel-node", "build": "babel lib -d dist", "serve": "node dist/index.js", -+ "test": "mocha --compilers js:babel-register" ++ "test": "mocha --require babel-register" } ```