Tape: devDependencies out-of-date. intentional?

Created on 26 Aug 2016  路  9Comments  路  Source: substack/tape

Hi Fellow Tapers,

we are just busy finishing writing a "_why you should use tape_" post and noticed that the devDependecies are out-of-date https://david-dm.org/substack/tape?type=dev devDependencies Status

tape-out-dependencies-out-of-date

Is this intentional or, can we submit a PR updating them?

All 9 comments

oh yeah pretty sure it's not intentional - PR welcome

When we update to the latest versions of tap and tap-parser we get quite a few failing tests:
tape-tests-fail-when-devdependencies-updated

So there might be some re-work required for a PR.... worth it?

While not crucial it'd be appreciated I reckon

The failing tests are indeed the reason they aren't updated. It would be quite appreciated to get a minimal PR to update them.

Hi @yoshuawuyts & @ljharb (_and the rest of the Tape Team!_),
have made the necessary update to the _first_ test that needs to be updated to work with the _latest_ version of Tap. please see: https://github.com/nelsonic/tape/commit/7db3bdcc5ca5b1f7be6ccf112a4438ed47be65c3

followed the example found in this PR: https://github.com/substack/tape/pull/171/files which was merged by @Raynos (_scroll down to the test/circular-things.js file_)

When the test is run we get:

tape-array-test-passes-after-update

Just to _confirm_: am I OK to continue updating the tests as necessary to bring them into line with the latest tap which matches the Tap Spec: https://testanything.org/tap-specification.html ?

Let me know and I will finish off the update and submit a PR today. (_thanks!_)

Those changes seem reasonable, thanks! Other than trying to keep diffs as minimal as possible, I'd love to review that PR.

@ljharb thanks for confirming. I will avoid updating the test arguments to keep diffs minimal.

The tests I've updated so far have the following .map over the stdout stream:

var rs = rows.map(function (r) {
    if (r && typeof r === 'object') {
        return { id : r.id, ok : r.ok, name : trim(r.name) };
    }
    else return r;
});

see: test/array.js#L15-L20

Given that the stdout stream that we are reading is converted to a string before being compared
this .map is redundant. Can I _remove_ it? (_or am I missing something?_)
e.g: https://github.com/nelsonic/tape/commit/0e04ba75d9d16a7ecf7fd39dedbc4b63401dd826

I've opened a PR so you can see what it _will_ look like: https://github.com/substack/tape/pull/314/files

@ljharb / @yoshuawuyts PR ready for review: https://github.com/substack/tape/pull/314/files (_thanks!_)

Yay!
tape-devdependencies-up-to-date

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndyOGo picture AndyOGo  路  8Comments

shaunlebron picture shaunlebron  路  4Comments

mustafamamun picture mustafamamun  路  3Comments

frankandrobot picture frankandrobot  路  4Comments

jimkang picture jimkang  路  3Comments