Skip to content

chore: move from tap to node:test#306

Merged
gurgunday merged 3 commits intofastify:masterfrom
eugleenyc:node-test
Dec 10, 2024
Merged

chore: move from tap to node:test#306
gurgunday merged 3 commits intofastify:masterfrom
eugleenyc:node-test

Conversation

@eugleenyc
Copy link
Copy Markdown
Contributor

These changes are related to the issue fastify/fastify#5555
Changed signer.test.js and cookie.test.js to use node:test instead of tap.

Checklist

Copy link
Copy Markdown
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@dancastillo dancastillo left a comment

Choose a reason for hiding this comment

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

Can you use test context so assert.strictEqual -> t.assert.strictEqual

Comment thread test/cookie.test.js
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.

Can you add back in t.plan. The test will end before assertions are compelete i believe
Then for the tests with callbacks update to

test('test name here', (t, done) => {
  // set up and test code
  done() // call after last assertion
})

Copy link
Copy Markdown
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

Please address @dancastillo's concern.

Signed-off-by: Aras Abbasi <aras.abbasi@googlemail.com>
@Uzlopak
Copy link
Copy Markdown
Contributor

Uzlopak commented Dec 8, 2024

@jsumners
@dancastillo

Fixed the tests... PTAL.

Copy link
Copy Markdown
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@gurgunday gurgunday merged commit 38913b7 into fastify:master Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants