使用mocha + chai,当抛出AssertionError时,我看到了这个
AssertionError: expected 2 to equal 4
+ expected - actual
-2
+4
at Context.<anonymous> (test/sync.coffee:116:18)
当使用chai-as-promised时,我看到了这个
1) Syncing Non-bare (empty staging area) to bare should sync all files:
AssertionError: expected 2 to equal 3
+ expected - actual
-2
+3
使用chai-as-promised时,是否有一种简单的方法来获取行号?
这里有完整的复制品回购 https://github.com/rissem/chai-as-promised-stack-trace
npm install
npm test