Open U-4-E-A opened 3 weeks ago
We do not use yarn. We use npm and its own lock file. Tests are passing with the dependencies in said lock file, I guess yarn is doing something funky.
We haven't updated a few dependencies yet: https://github.com/fastify/fastify-passport/pulls.
Prerequisites
Issue
I downloaded a zip of the repo, installed dependencies and ran
yarn test
. A number of tests failed: -In addition, I noticed what appears to be an error in
authorize.test.ts
where the test description does not match the assertion: -Shouldn't
assert.strictEqual(response.statusCode, 200)
beassert.strictEqual(response.statusCode, 401)
or the description ofshould return 401 Unauthorized if not logged in
is wrong? This test passes because the response code is indeed200
.