diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b00276..5395d92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: license-check: true lint: true diff --git a/.taprc b/.taprc index 667ceab..eb6eb3e 100644 --- a/.taprc +++ b/.taprc @@ -1,4 +1,2 @@ -check-coverage: true - files: - test/**/*.test.js diff --git a/package.json b/package.json index 081bc0f..3cd72c5 100644 --- a/package.json +++ b/package.json @@ -31,17 +31,17 @@ }, "homepage": "https://github.com/fastify/fastify-bearer-auth#readme", "devDependencies": { - "@fastify/auth": "^4.0.0", - "@fastify/pre-commit": "^2.0.2", - "@types/node": "^20.1.0", - "fastify": "^4.0.0-rc.2", - "standard": "^17.0.0", - "tap": "^16.0.0", + "@fastify/auth": "^5.0.0-pre.fv5.1", + "@fastify/pre-commit": "^2.1.0", + "@types/node": "^20.12.7", + "fastify": "^5.0.0-alpha.3", + "standard": "^17.1.0", + "tap": "^18.7.2", "tsd": "^0.31.0" }, "dependencies": { "@fastify/error": "^4.0.0", - "fastify-plugin": "^4.0.0" + "fastify-plugin": "^5.0.0-pre.fv5.1" }, "pre-commit": [ "lint", diff --git a/test/spec-compliance-invalid.test.js b/test/spec-compliance-invalid.test.js index d07d3a0..4b8c244 100644 --- a/test/spec-compliance-invalid.test.js +++ b/test/spec-compliance-invalid.test.js @@ -11,5 +11,5 @@ test('throws FST_BEARER_AUTH_INVALID_SPEC when invalid value for specCompliance const fastify = Fastify() - t.rejects(() => fastify.register(plugin, { keys: new Set(['123456']), specCompliance: 'invalid' }), new FST_BEARER_AUTH_INVALID_SPEC()) + t.rejects(async () => fastify.register(plugin, { keys: new Set(['123456']), specCompliance: 'invalid' }), new FST_BEARER_AUTH_INVALID_SPEC()) })