nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

feat: Use native test instead of 'tape'

Open SEWeiTung opened this issue 4 years ago • 5 comments

Since Node has released its own 'Test Runner', here's the upgrade for nodejs.org by using node natvie test runner as a feature experiment. This has shortened the time in the process of unit tests.

Here's the detailled info for the new "Test Runner" as a result: 1662188004602

SEWeiTung avatar Aug 23 '22 09:08 SEWeiTung

Reopen it because Nodejs version is latest.

SEWeiTung avatar Sep 03 '22 06:09 SEWeiTung

Note that there are no stability guarantees for node:test since it is an experimental feature and not recommended for production. Unless the Node.js version used in workflows is fixed to a specific version, workflows might break when changes are made as part of new Node.js versions.

tniessen avatar Sep 03 '22 08:09 tniessen

@tniessen :I see……I've converted it into a draft version until the released version of Nodejs is OK... Thanks.

PS:Everything seems nice now even in the experimental mode.

SEWeiTung avatar Sep 03 '22 08:09 SEWeiTung

I see……I've converted it into a draft version until the released version of Nodejs is OK... Thanks.

PS:Everything seems nice now even in the experimental mode.

To clarify, I am not saying that this PR should not be merged sooner. It will likely take a while until the feature is considered stable, and I myself am not opposed to large or even breaking changes to the test runner if they are considered to be an improvement. In such cases, it would be up to the maintainers of repositories such as this one to keep up with those changes. If someone can commit to doing that, I don't see a problem here.

On the plus side, projects belonging to Node.js (such as this repository) could actually be good places to test the test runner.

tniessen avatar Sep 03 '22 11:09 tniessen

OK,I'll keep it until the final release of the Test Runner comes.

SEWeiTung avatar Sep 04 '22 01:09 SEWeiTung