-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Tape tests from tap.createConsumer to concat-stream #2
Comments
…er (which is depracated in new version of Tap) for tape-testing#312 see: dwyl/learn-tape#2
@nelsonic What is the difference? The path? I think I had similar issue couple of days ago when I made my own long stack trace solution. One solution I used was I further "hacked" into the reporter itself and checked if "failed" was triggered. Maybe not the way to go... How is the TAP stack trace code? |
I initially considered writing a function that attempted to return a semi-hard-coded version of the stack trace: var basepath = __filename.replace('test/end-as-callback.js', '');
// stack trace for new tap error
var s = ' ---\n';
s += ' operator: error\n';
s += ' expected: |-\n';
s += ' undefined\n';
s += ' actual: |-\n';
s += ' [Error: fail]\n';
s += ' stack: |-\n';
s += ' Error: fail\n';
s += ' at fakeAsyncWriteFail (' + basepath + 'test/end-as-callback.js:61:8)\n';
s += ' at ' + basepath + 'test/end-as-callback.js:47:13\n';
s += ' at fakeAsyncTask (' + basepath + 'test/end-as-callback.js:52:5)\n';
s += ' at Test.<anonymous> (' + basepath + 'test/end-as-callback.js:42:9)\n';
s += ' at Test.bound [as _cb] (' + basepath + 'lib/test.js:63:32)\n';
s += ' at Test.run (' + basepath + 'lib/test.js:82:10)\n';
s += ' at Test.bound [as run] (' + basepath + 'lib/test.js:63:32)\n';
s += ' at Immediate.next [as _onImmediate] (' + basepath + 'lib/results.js:71:15)\n';
s += ' at processImmediate [as _immediateCallback] (timers.js:383:17)\n';
s += ' ...\n'; But I don't want everyone to hate me each time one of the files gets updated so instead decided to read the stacktrace lines from the |
… for test/end-as-callback.js see: dwyl/learn-tape#2 (comment)
closing. tape-testing/tape#318 was merged. ✅ |
While reading Tape source code I decided to check the devDependendices and spotted that they are way out-of-date: tape-testing/tape#312
When we update devDependencies 25 tests fail.
This is because
tap
no longer has acreateConsumer
method.After a bit of googling we found a "guide" for how to update the tests...
See: https://github.com/substack/tape/pull/171/files
The text was updated successfully, but these errors were encountered: