diff --git a/package-lock.json b/package-lock.json index c9fb4859..775d533b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@fastify/jwt": "^8.0.1", "@fastify/schedule": "^4.1.1", "@fastify/swagger": "^8.14.0", - "@fastify/swagger-ui": "^3.1.0", + "@fastify/swagger-ui": "^4.0.0", "@lokalise/backend-http-client": "^1.4.0", "@lokalise/background-jobs-common": "^3.4.0", "@lokalise/fastify-extras": "^21.2.1", @@ -1865,9 +1865,9 @@ } }, "node_modules/@fastify/swagger-ui": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@fastify/swagger-ui/-/swagger-ui-3.1.0.tgz", - "integrity": "sha512-68jm6k8VzvHXkEBT4Dakm/kkzUlPO4POIi0agWJSWxsYichPBqzjo+IpfqPl4pSJR1zCToQhEOo+cv+yJL2qew==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@fastify/swagger-ui/-/swagger-ui-4.0.0.tgz", + "integrity": "sha512-ZbVJg4bQHNyd10f6DZftMMuSPKpkh6ePB5TfbZLSjUQmfIDnNYBWhGv8o0iUxYbLAyIz1oa5xqp2e/Z9B7wlFg==", "dependencies": { "@fastify/static": "^7.0.0", "fastify-plugin": "^4.0.0", diff --git a/package.json b/package.json index b20df181..7af92556 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@fastify/jwt": "^8.0.1", "@fastify/schedule": "^4.1.1", "@fastify/swagger": "^8.14.0", - "@fastify/swagger-ui": "^3.1.0", + "@fastify/swagger-ui": "^4.0.0", "@lokalise/backend-http-client": "^1.4.0", "@lokalise/background-jobs-common": "^3.4.0", "@lokalise/fastify-extras": "^21.2.1", diff --git a/src/app.e2e.spec.ts b/src/app.e2e.spec.ts index bbb60999..274eddc6 100644 --- a/src/app.e2e.spec.ts +++ b/src/app.e2e.spec.ts @@ -82,7 +82,7 @@ describe('app', () => { }) it('Returns OpenAPI information (HTML)', async () => { - const response = await app.inject().get('/documentation/static/index.html').end() + const response = await app.inject().get('/documentation').end() expect(response.statusCode).toBe(200) })