Created
January 9, 2016 13:50
-
-
Save bouzuya/0686c53b1e51062b62c4 to your computer and use it in GitHub Desktop.
typescript & babel & mocha & power-assert の設定の断片
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('espower-babel')({ | |
| cwd: process.cwd(), | |
| pattern: 'tmp/test/**/*-test.js', | |
| espowerOptions: { | |
| patterns: [ | |
| 'assert(value, [message])', | |
| 'assert.ok(value, [message])', | |
| 'assert.equal(actual, expected, [message])', | |
| 'assert.notEqual(actual, expected, [message])', | |
| 'assert.strictEqual(actual, expected, [message])', | |
| 'assert.notStrictEqual(actual, expected, [message])', | |
| 'assert.deepEqual(actual, expected, [message])', | |
| 'assert.notDeepEqual(actual, expected, [message])' | |
| ] | |
| }, | |
| babelrc: { | |
| presets: ['es2015'], | |
| plugins: ['transform-es2015-modules-commonjs'] | |
| } | |
| }); |
Author
bouzuya
commented
Jan 9, 2016
Author
mocha --require espower-babel-loader.js tmp/test/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment