-
-
Save thmsobrmlr/6cae8efc5795bd6e60f469d9bf84b692 to your computer and use it in GitHub Desktop.
example of Mocha source map support for babel (es2015) and markdown reporter
This file contains 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
import {ok} from 'assert'; | |
describe('foo()', () => { | |
it('should pass', () => { | |
ok(true); | |
}); | |
}); |
This file contains 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
{ | |
"name": "mocha-sourcemaps", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "mocha --reporter markdown --require source-map-support --require babel-register index.spec.js" | |
}, | |
"keywords": [], | |
"author": "Christopher Hiller <[email protected]> (https://boneskull.com/)", | |
"license": "ISC", | |
"dependencies": { | |
"babel-preset-es2015": "^6.9.0", | |
"babel-register": "^6.9.0", | |
"mocha": "^2.5.3", | |
"source-map-support": "^0.4.0" | |
}, | |
"babel": { | |
"presets": [ | |
"es2015" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: