Skip to content

chore: Replace mocha/expect/nyc with node:test harness - #33

Merged
phated merged 3 commits into
gulpjs:mainfrom
FotoVerite:main
Oct 26, 2026
Merged

phated merged 3 commits into
gulpjs:mainfrom
FotoVerite:main

Conversation

@FotoVerite

Copy link
Copy Markdown
Contributor

Closes #32

Comment thread test/index.js

it('should not show "Details:" if there are no properties to show', function (done) {
it(
"should toString quickly with original error",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get conceptually how this works but it seems like just accepting it outputs before the timeout isn't actually testing what you would want it too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd have to check the git history, but my guess is that there was a bug in toString at some point that made it take a long time, so these low-timeout tests were created to ensure a call to the function completes in less than 100ms (no assertion required)

@FotoVerite
FotoVerite requested a review from phated October 25, 2026 19:38
@FotoVerite FotoVerite self-assigned this Oct 25, 2026

@phated phated left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@phated phated added this to v6 Oct 26, 2026
@github-project-automation github-project-automation Bot moved this to Todo in v6 Oct 26, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in v6 Oct 26, 2026
@phated
phated merged commit 4fe018f into gulpjs:main Oct 26, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in v6 Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Update test harness

2 participants