Power-assert provides descriptive assertion messages through standard assert interface. To do this, power-assert transform test code to look for calls to assert
and enhance them. I'm wondering how to get this working with wallaby.js?
It's pretty simple to add power-assert to the compiler pipeline including sourcemap (an example taking the result from ts-node and passing it through power-assert: https://github.com/tracecomms/espower-ts-node). I'm not sure how ranges
would need to be created in a custom compiler.
Is power-assert support something that could be added to wallaby.js?
Wallaby.js configuration filemodule.exports = function () { return { files: [ 'src/**/*.ts', { pattern: 'src/**/*.unit.ts', ignore: true } ], tests: [ 'src/**/*.unit.ts' ], testFramework: 'mocha', env: { type: 'node' // More options are described here // http://wallabyjs.com/docs/integration/node.html } }; };Code editor or IDE name and version
WebStorm v11
Atom v1.x
OSX
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4